Skip to content

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!

Notifications You must be signed in to change notification settings

rahiaag/Snake-Game-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Snake Game

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.

Compile and run to enjoy retro gaming fun!!

Here is the Snapshot of a classic Snake game in C++.

image

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

No packages published

Languages