This console-based Snake game in C++ uses Object-Oriented Programming (OOP). The game consists of three main classes: point
, Snake
, and Board
. The point
class represents coordinates on the board. The Snake
class models the snake with attributes for length, direction, and body, and methods for changing direction and moving. The Board
class manages the game, handling the snake and food, updating the game state, and drawing the game. To play, compile the code with a C++ compiler and run the executable.
-
Notifications
You must be signed in to change notification settings - Fork 0
Console-based Snake Game in C++ using Object-Oriented Programming (OOP). Explore the classic game with the Snake, Point, and Board classes managing gameplay, movement, and rendering. Compile and run to enjoy retro gaming fun!
rahiaag/Snake-Game-
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Console-based Snake Game in C++ using Object-Oriented Programming (OOP). Explore the classic game with the Snake, Point, and Board classes managing gameplay, movement, and rendering. Compile and run to enjoy retro gaming fun!
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published