Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended Partial Observability Challenge -- Enemy feat code #50

Open
LiZhYun opened this issue Dec 29, 2024 · 0 comments
Open

Extended Partial Observability Challenge -- Enemy feat code #50

LiZhYun opened this issue Dec 29, 2024 · 0 comments

Comments

@LiZhYun
Copy link

LiZhYun commented Dec 29, 2024

Does this code mean that as long as the unit cannot see any enemy, it cannot see all enemies?

if self.obs_enemies[e_id, agent_id] == 0:
    enemy_feats = np.zeros(enemy_feats_dim, dtype=np.float32)

I guess the idea in the paper might be to just shade that enemy?

if self.obs_enemies[e_id, agent_id] == 0:
    enemy_feats[e_id] = np.zeros(enemy_feats_dim[1], dtype=np.float32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant