Skip to content

rwdavis513/PySnakeAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PySnakeAI

This is adapated from the Snake Game on pygame.org

http://pygame.org/project-Snake+in+35+lines-818-.html

It has been slightly modified to allow an AI interface in the future.

Copy random_ai.py to add an AI

dirs is the next move of the snake. 0=Up, 1=Left, 2=Down, 3=Right

sg.xs and sg.ys are the current positions of the snake sg.applepos is the position of the apple

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages