Skip to content

Hi , this is my code for two players game , i put clui.h library from( https://github.com/SBU-CE/clui ) beside this file and you should put them in same folder , i suggest you to compile this file with g++ and run it in cmd with maximize window . good luck !

Notifications You must be signed in to change notification settings

ParsaHmi/snake-game-2players

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SNAKE GAME

Welcome to Snake Game! This is a simple two-player game with fantastic graphics (in CMD). You can add more players and play in teams of two, and at the end, compare the scores!

HOW TO PLAY

  • The game starts when one of the players moves.
  • Your goal is to find and eat apples. Eating an apple increases your score, while eating a bomb decreases your score and ends the game!
  • If you hit a wall or collide with the other player's snake, your score will be reduced and the game will end.

HOW TO RUN

  • 1_ Download the project and place it in a folder.
  • 2_Ensure the required libraries are placed alongside the game files.
  • 3_Compile the game using g++ or any compatible compiler.
  • 4_Run the game in CMD (maximize the window for the best experience).
  • 5_Good luck!

SCREEN SHOTS

  • When you run the game you will face the menu first , you can type 1 to start a quick game . Screenshot 1
  • at first you need to make two players , so enter names and select colors ! Screenshot 2
  • then you can set the speed ! Screenshot 3
  • now get ready , game will starts when any player moves , try to get apple and avoid from eating the bomb ! Screenshot 4
  • when any of players get bomb , or time ends , the game will end up . Screenshot 5
  • you can select table of scores from menu to see your scores Screenshot 6

About

Hi , this is my code for two players game , i put clui.h library from( https://github.com/SBU-CE/clui ) beside this file and you should put them in same folder , i suggest you to compile this file with g++ and run it in cmd with maximize window . good luck !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published