MultiAgentLearning / playground

PlayGround: AI Research into Multi-Agent Learning.
https://www.pommerman.com
Apache License 2.0
765 stars 217 forks source link

Fixes 115: Added blocking keyboard player #206

Closed pathway closed 5 years ago

pathway commented 5 years ago

"Blocking" means the whole game waits for user input.

Test this with:

pom_battle --agents=playerblock::arrows,test::agents.SimpleAgent,test::agents.SimpleAgent,test::agents.SimpleAgent --config=PommeFFACompetition-v0 --render

pom_battle --agents=playerblock::wasd,test::agents.SimpleAgent,test::agents.SimpleAgent,test::agents.SimpleAgent --config=PommeFFACompetition-v0 --render

You can still use the original player (non-blocking):

pom_battle --agents=player::arrows,test::agents.SimpleAgent,test::agents.SimpleAgent,test::agents.SimpleAgent --config=PommeFFACompetition-v0 --render

pathway commented 5 years ago

Still have concerns here @cinjon ?

cinjon commented 5 years ago

seems good. i'd appreciate it if you ran it through yapf -i --style google quickly before submitting.

cinjon commented 5 years ago

also, please squash the commits together.

pathway commented 5 years ago

Superseded by https://github.com/MultiAgentLearning/playground/pull/208

cinjon commented 5 years ago

we can close this, ja?