Skip to content

Welcome to AI Chasing Snake, an engaging and intelligent version of the classic Snake game implemented in Python using the Tkinter library. The game features an AI-controlled snake that strategically chases its tail or seeks out food using the A* algorithm, providing a challenging and intriguing gameplay experience.

Notifications You must be signed in to change notification settings

SameerKamani/AI-Chasing-Snake

Repository files navigation

Game Summary:

Welcome to AI Chasing Snake, an engaging and intelligent version of the classic Snake game implemented in Python using the Tkinter library. The game features an AI-controlled snake that strategically chases its tail or seeks out food using the A* algorithm, providing a challenging and intriguing gameplay experience.

image image

Key Features:

  • Intelligent Snake: The snake employs A* algorithm to make decisions, choosing between tail-chasing and food-seeking strategies.
  • Dynamic Board: The game board consists of walls, snake body, and food, creating a dynamic environment for the snake to navigate.
  • Score System: Earn points by successfully navigating the snake to consume food. The longer the snake, the higher the score.
  • Game Over Conditions: The game continues until the snake collides with itself or reaches a power level limit, adding a strategic element to survival.

How to Play:

  1. Run the game using the provided Python script.
  2. Watch as the AI-controlled snake maneuvers through the board, strategically choosing between tail-chasing and food-seeking.
  3. Observe the dynamic environment, including walls, snake body, and food.
  4. Enjoy the game's soundtrack and sound effects, enhancing the overall gaming experience.
  5. The game ends when the snake collides with itself or reaches a specified power level limit.

Why AI-Chasing-Snake?

  • Intelligent Gameplay: Experience a snake game that goes beyond simple movements, incorporating AI decision-making.
  • Strategic Challenges: Navigate the snake through obstacles, plan ahead, and strategically choose between chasing the tail and seeking food.
  • Custom Soundtrack: Immerse yourself in the game with a custom soundtrack and sound effects, enhancing the overall gaming atmosphere.

Repository Structure:

  • ai_chasing_snake.py: Main Python script containing the game logic and AI implementation.
  • RokuSnakeOST.wav: Soundtrack for the gameplay.
  • The Price is Right Losing Horn - Sound Effect (HD).wav: Sound effect for game over.
  • Readme.md: Detailed documentation providing information on how to run the game, gameplay instructions, and key features.

Get ready for a unique Snake experience with AI-Chasing-Snake!

About

Welcome to AI Chasing Snake, an engaging and intelligent version of the classic Snake game implemented in Python using the Tkinter library. The game features an AI-controlled snake that strategically chases its tail or seeks out food using the A* algorithm, providing a challenging and intriguing gameplay experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages