Skip to content

alibagheri97/AI-Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

How to setup and run the project

Snake game is a Python program that will run on Windows.

Libraries that you need to install

  • Install requirements:
    • Numpy: pip install numpy
    • sklearn: pip install sklearn
    • pickle: pip install pickle

How to use it

just set two initial parameters

  • set speed game between .01 seconds and .5 secondes that you can set 0 - 100 percent
  • set Number of width pixels that you can set between 10 - 40 or more, but it won't give you a good result larger or less than this range
  • and when you do, AI going to train until 500 Iteration, so please be patient
  • after that when window create, you should use (up, down, left, right) keys on keyboard then snake will move

Activate AI

just use the AI button to activate and deactivate the AI

Contact me

About

AI snake game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages