Skip to content

MAPLELEAF3659/snake-game-ml-agent

Repository files navigation

snake-game-ml-agent(Anaconda Game Agent)

Project setup

  1. Create Anaconda env using conda_env.yaml

    conda env create -f conda_env.yaml
  2. Edit conda_unity-snake-ml.bat file * Change <user> to your user name to run properly.

  3. Run conda_unity-snake-ml.bat

  4. Using following command to start training

    mlagents-learn config\ppo\snake.yaml --run-id=snake_agent

    * You can freely change config file setting(snake.yaml) & run-id name.

  5. Press play in Unity Editor * You can use TrainingScene in Assets/Scenes/TrainingScene or create by your own.