Skip to content

Developing a 1 player card game with JavaScript, and Jest

Notifications You must be signed in to change notification settings

rOluochKe/2-player-card-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2 Player Card Game

Task requirements

  • 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

Setup

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

Assumption

  1. This is a poker kind of a card game
  2. Jokers are removed before the game
  3. Suits does not matter
  4. Since players don't have choices to make, there is no need to for an input

About

Developing a 1 player card game with JavaScript, and Jest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published