├── .gitignore ├── LICENSE ├── README.md ├── ai_base.py ├── ai_dqn.py ├── ai_player.py ├── ai_rlq.py ├── ai_rulebased.py ├── ai_sarsa.py ├── from_original_tutorial └── README.md ├── img ├── background.png ├── food.png ├── head.png ├── snake.png └── wall.png ├── main.py ├── q-table-learned.json ├── requirements.txt ├── snake.py ├── vecint2.py ├── weights-learned-80.hdf5 └── weights-learned.hdf5 /.gitignore: -------------------------------------------------------------------------------- 1 | # .gitignore 2 | __pycache__ 3 | .vscode 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/README.md -------------------------------------------------------------------------------- /ai_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/ai_base.py -------------------------------------------------------------------------------- /ai_dqn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/ai_dqn.py -------------------------------------------------------------------------------- /ai_player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/ai_player.py -------------------------------------------------------------------------------- /ai_rlq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/ai_rlq.py -------------------------------------------------------------------------------- /ai_rulebased.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/ai_rulebased.py -------------------------------------------------------------------------------- /ai_sarsa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/ai_sarsa.py -------------------------------------------------------------------------------- /from_original_tutorial/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/from_original_tutorial/README.md -------------------------------------------------------------------------------- /img/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/img/background.png -------------------------------------------------------------------------------- /img/food.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/img/food.png -------------------------------------------------------------------------------- /img/head.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/img/head.png -------------------------------------------------------------------------------- /img/snake.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/img/snake.png -------------------------------------------------------------------------------- /img/wall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/img/wall.png -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/main.py -------------------------------------------------------------------------------- /q-table-learned.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/q-table-learned.json -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/requirements.txt -------------------------------------------------------------------------------- /snake.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/snake.py -------------------------------------------------------------------------------- /vecint2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/vecint2.py -------------------------------------------------------------------------------- /weights-learned-80.hdf5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/weights-learned-80.hdf5 -------------------------------------------------------------------------------- /weights-learned.hdf5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cfoh/snake-game/HEAD/weights-learned.hdf5 --------------------------------------------------------------------------------