Skip to content

Fix #233: Remove self._number_of_bots, pass number_of_bots to _create_players() - #403

Closed
ahmedmajid22 wants to merge 2 commits into
mainfrom
233-remove-self-number-of-bots
Closed

ahmedmajid22 wants to merge 2 commits into
mainfrom
233-remove-self-number-of-bots

Conversation

@ahmedmajid22

Copy link
Copy Markdown
Collaborator

Closes #233

Removes the unused self._number_of_bots instance variable from init and passes number_of_bots directly as a parameter to _create_players(). In reset(), the bot count is derived from the observation space shape since number_of_bots is not available there. Adds cast to the typing import as required.

@jarl-hoyem jarl-hoyem left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@jarl-hoyem

Copy link
Copy Markdown
Collaborator

After analysis, the new code solving this issue is more complex. We did not know this beforehand. Now we have learned that the whole idea of removing self._number_of_bots is flawed. Hence the issue should be closed with "wontfix" and this pull request rejected.

@jarl-hoyem jarl-hoyem closed this May 29, 2026
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

Successfully merging this pull request may close these issues.

Remove unneeded internal variable self._number_of_bots from PickominoEnv __init__ method

3 participants