# Competition_1v1snakes **Repository Path**: jidiai/competition-1v1snakes ## Basic Information - **Project Name**: Competition_1v1snakes - **Description**: RLChina2021暑期课大作业 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2021-08-20 - **Last Updated**: 2022-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](agent/random/random_agent.py) ## Homework 👉请看[submission.py](agent/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~