Skip to content

NxSYED-ux/AI-Powered-Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ AI-Powered Snake Game (C++)

A competitive Snake Game built in C++ featuring a smart AI snake that adapts its movement dynamically. The game utilizes doubly linked lists for snake body management and integrates pathfinding logic to intelligently react to the player's position, food, obstacles, and its own body.


๐Ÿš€ Features

  • โœ… Classic Snake Game mechanics with real-time input
  • ๐Ÿง  AI Snake that:
    • Tracks and responds to player position
    • Avoids collisions with obstacles and its own body
    • Finds optimal paths to food
  • ๐Ÿงฉ Built using core Data Structures and Algorithms
    • Doubly Linked Lists for snake body
    • Custom pathing and decision logic
  • ๐ŸŽฎ Competitive gameplay: Human vs AI
  • ๐Ÿ–ฅ๏ธ Terminal-based UI

๐Ÿ› ๏ธ Technologies Used

  • C++
  • Object-Oriented Programming (OOP)
  • Custom Doubly Linked List Implementation
  • Core Algorithmic Logic (pathfinding and avoidance)

๐Ÿ“‚ How to Run

  1. Clone the repository:
    git clone https://github.com/NxSYED-ux/AI-Powered-Snake-Game.git
    cd AI-Powered-Snake-Game
    
    # Then compile and run the code.cpp file using any C++ IDE or compiler

About

This project is a terminal-based Snake Game in C++ with an intelligent AI snake that dynamically adapts its movements. It leverages doubly linked lists for snake body management and custom pathfinding logic to challenge the player, avoid collisions, and seek food efficiently. Perfect for learning data structures, algorithms, and AI logic in a fun,

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages