Skip to content

Files

Latest commit

b3f2a2d · Jun 20, 2023

History

History
25 lines (16 loc) · 623 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 623 Bytes

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.