Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake deep-Q learning

Description of contents:

  • ./src:
  • environment.py - contains the snake engine (snakeGame) and snake env build on top of gymnasium (snakeEnv)
  • environment_utils.py - contains helper methods for rendering and calculating more complicated states values
  • play.py - simple algorithm allowing you to play using key.left, key.up, key.right
  • agent.py - deep q learning feedforward NN built with PyTorch
  • snakeAgent.py - current implementation of the agent in snake game with the learning loop
  • performance_inspect.py - allows for inspecting death_states, snake lengths etc. of past episodes
  • ./test:
  • tests for utilities functions
  • ./models:
  • saved parameters of trained NNs
  • ./performance:
  • .npz files with metrics from past episodes

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages