Skip to content

RadikalJin/snek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

AutoSnek

This is snake, written in Java.

This is primarily a way for me to try writing pathfinding algorithms. You can play the game normally with the arrow keys, or let it play itself by toggling on a pathfinding algorithm with one of the following keys:

Key Pathfinding
D Depth First Search (DFS)
B Breadth First Search (BFS)
M Breadth First Search (BFS), but ignoring segments of tail that would have moved on by the time the head of the snake reaches them (worked out using Manhattan/taxicab distance)

TODO:

  • Djkstra (as this is an undirected graph, this will end up being equivalent to BFS)
  • A*

Other options include:

Key Option
F Fast mode
C Colourful mode - new food will be randomly coloured, and will be added to the end of the snake's tail when eaten

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages