- The game starts with a deck of card
- Cards are both issued to players
- On each turn
- both players turn over their top most card
- player with the higher valued card, wins the round and adds it to their scorecard
- play continues until their is not cards left
- player with the highest score wins
Clone the project from github:
git clone git@github.com:rOluochKe/2-player-card-game.git
Cd into the project directory:
cd 2-player-card-game
Install required packages, run
npm install
Run the project and continue playing the game in your console
npm start
Run the tests
npm test
- This is a poker kind of a card game
- Jokers are removed before the game
- Suits does not matter
- Since players don't have choices to make, there is no need to for an input