-
Notifications
You must be signed in to change notification settings - Fork 70
RF: Use classic game_state for communication with the bots #851
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
base: main
Are you sure you want to change the base?
Conversation
9900f1c to
6d5989d
Compare
7a4b130 to
148ee72
Compare
|
Hey, I don't want to give a premature review, but I am a bit worried by the direction this is taking. I appreciated a lot the idea of cleaning up a bit the use of the game state and rationalizing it's usage thorough the code base. But now I see types creeping in everywhere and I think this is a bigger endeavor and a contentious one at that. This is a big discussion, so maybe this is not the right forum to have it. |
Exactly. I am using these to catch errors during development with the help of my (pretty much unconfigured) IDE. Apart from that, these are WIP commits in a draft PR. ;) Main motivation though: Why put things in a comment that no-one reads like in https://github.com/ASPP/pelita/blob/main/pelita/network.py#L17-L32 : when we can use modern Python features for the same thing? In that sense, yes, I am planning to rewrite these comments to |
|
ok, ok, then I'll retreat and wait for the WIP to be finalized. |
accbb36 to
1c513fc
Compare
1c513fc to
502c27f
Compare
502c27f to
e5309c2
Compare
This undos the split in team/enemy in the state that a team receives. The reasoning is that this format makes it easier to reuse functions from game.py in one’s own code.
e5309c2 to
00e0a88
Compare
This undos the split in team/enemy in the state that a team receives.
The reasoning is that this format makes it easier to reuse functions from game.py in one’s own code.
Works and checks all tests but will need some cleanup and full implementation of #844 to be really useful.