-
Create Anaconda env using conda_env.yaml
conda env create -f conda_env.yaml
-
Edit conda_unity-snake-ml.bat file * Change <user> to your user name to run properly.
-
Run conda_unity-snake-ml.bat
-
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.
-
Press play in Unity Editor * You can use TrainingScene in Assets/Scenes/TrainingScene or create by your own.
-
Notifications
You must be signed in to change notification settings - Fork 0
MAPLELEAF3659/snake-game-ml-agent
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
An AI playing snake game. Made in Unity.