An open API service indexing awesome lists of open source software.

https://github.com/trigaten/tabular-q-learning_in_snake


https://github.com/trigaten/tabular-q-learning_in_snake

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# Tabular-Q-Learning_In_Snake
Finds optimal policies for a given square game board.

https://user-images.githubusercontent.com/42948753/167049940-59e8cc8d-5bbd-45a0-9d28-5948c7178d4f.mov

--Run displayTest and change the line GAME_SIZE = to whatever boardsize you would like. Boardsizes > 3 will essentially not
compute because state spaces explode according to the following table (Actual section):

Possible states at a given board length, L

L | Upper Bound | Actual

1 : 1 | 1

2 : 236 | 44

3 : 137700 | 2080

4 : 535692272 | 143920

5 : 16475056294100 | 22073136