Skip to content

Seyed0Mohammad0Hosseini/Snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Game (2-player) - C++

Describtion

This is a two player snake game implemented in C++. It is playing in console,allowing two players to control their snakes using the keyboard. The game features a scoreboard in game and another scoreboard for all players and the ability to set limit time for game.

Features

1-Two-player-mode: One player controls their snakes with W, A, S, D keys, and another one uses arrow keys

2-Scoreboard: Track player scores throughout the game.

3-Set time limit: Players can define a specific time duration for the game.

How to Run

1.Clone the repository:

git clone https://github.com/Seyed0Mohammad0Hosseini/Snake-game.git

2.Navigate to the project directory:

cd snake-game

3.Compile the game:

g++ -o snake_game main.cpp

4.Run the game:

./snake_game

Project Information

This project developed as part of the Intoduction To Programming(ITP) course.

About

I developed a two-player Snake game using C++ in the console. In this version, two players control separate snakes, competing to eat food and grow while avoiding collisions with the walls, themselves, and each other. The game implements basic C++ concepts like arrays, loops, conditional statements, and real and time-user input.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors