jidiai / Competition_1v1snakes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Competition_1v1snakes

任务:贪吃蛇 snakes_1v1

Dependency

You need to create competition environment.

conda create -n snake1v1 python=3.7

conda activate snake1v1

pip install -r requirements.txt


Baseline 👉请看random_agent.py

Homework 👉请看submission.py


How to train rl-agent

python rl_trainer/main.py

You can edit different parameters, for example

python rl_trainer/main.py --lr_a 0.001 --seed_nn 2

How to test submission

When your submission is ready, you can locally test your submission. At Jidi platform, we evaluate your submission as same as run_log.py

Once you run this file, you can locally check battle logs in the folder named "logs".

Have fun~

About

License:MIT License


Languages

Language:Python 100.0%