AI learning to play Snake game "from pixels" with Tensorflow 2.0.
Python 2 and Tensorflow 2.0
To start the game, simply type:
$ python src/snake.py
Simply follow instructions visible in the screen. From the menu you can choose:
- to play the game
- train the A2C agent to play
- watch a fully trained A2C agent playing the game
You can train the agent multiple times. The agent's state is saved after each training phase, so it will keep improving.