douglascdev / douglascdev/snake

Build a bot to play the game

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
4
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Build a bot in a separate module that plays the game. It'll have to:

- Get the location of the food and the snake
- Find the best path to follow between those two points
- Make the path it's currently following visible with lines
- The path finding should prioritize not getting the snake stuck in a circle with it's own body around, not just the closest path
- Change the snake's direction on each step to follow the determined path
- Get the game to run faster when the bot is playing

This could also be made with an AI later on.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.