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.
- โ 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
- C++
- Object-Oriented Programming (OOP)
- Custom Doubly Linked List Implementation
- Core Algorithmic Logic (pathfinding and avoidance)
- 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