Playing the Snake Game with Reinforcement Learning

Authors

  • Pan Yuhang Chien-Shiung Wu College, Southeast University, Nanjing 211189, China
  • Song Yiqi School of Mathematics and Statistics, Beijing Institute of Technology, Beijing 100081, China
  • Ma Qianli Chien-Shiung Wu College, Southeast University, Nanjing 211189, China
  • Gu Bowen Chien-Shiung Wu College, Southeast University, Nanjing 211189, China
  • Dong Junyi School of Mechanical Engineering and Automation, Northeastern University, Liaoning 314001, China
  • Tang Zijun School of Science, Jimei University, Xiamen 361021, China

DOI:

https://doi.org/10.61603/ceas.v1i1.13

Keywords:

snake game, reinforcement learning, DQN

Abstract

When it is necessary to make several decisions to solve a problem, reinforcement learning works well. In this project, we demonstrate the outcomes of playing with snakes using a Deep Q-Network (DQN). Unfortunately, DQN has a tendency to overfit, which results in a deterioration in terms of scores that are subpar after numerous training sessions. To solve this issue, we enhanced the reward setting and provided the snake with more information about its surroundings in order to raise our score and prevent some overfitting issues. Also, we went through the differences between DQN and conventional evolutionary algorithms as well as possible avenues for DQN optimization.

Downloads

Published

2023-07-13

Issue

Section

Articles

How to Cite

Playing the Snake Game with Reinforcement Learning. (2023). Cambridge Explorations in Arts and Sciences, 1(1). https://doi.org/10.61603/ceas.v1i1.13