Skip to content

Original Python Framework

Raluca D. Gaina edited this page Jun 4, 2019 · 1 revision

How to run

  • Go to playground/examples/simple_ffa_run.py
  • When loading the environment, indicate:
    • PommeFFACompetition-v0 - In this all agents are against each other
    • PommeTeamCompetition-v0 - In this teams of two agents each are set against each other. The teams are [Agent0, Agent2] and [Agent1, Agent3]
    • PommeFFA-v1 - In this all agents are against each other while the board collapses uniformly by replacing the outermost square with walls
    • PommeTeamCompetition-v1 - This is similar to PommeFFA-v1 but with Teams instead of being Free-For-All
    • PommeRadio-v2 - This is similar to PommeTeamCompetition-v0 but the agents can send a list of two integers in the range [1, 8] to their teammates on every turn.
  • Make sure you have a 64 bit version of Python installed, as the framework specifically checks for this. Otherwise, you can change in file pommerman/utility.py line 27 to:
    • elif isinstance(obj, (int, np.integer)):
    • (this fix would not work if you submit to the competition run on their framework any agents that rely on the assumption of 32 bit Python version)
Clone this wiki locally