Skip to content

kernelshreyak/color-card-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Card Game

A single player color and number matching card game (inspired from UNO) with CPU opponent written in JavaScript.

Game rules

  1. Game starts with 20 random cards for each player.
  2. Each card can be Red, Green, Blue, Yellow or Pink and can have a number from 1 to 9.
  3. During a turn, play a card matching the color or number of the last played card. If no card can be played this turn, draw a new card and your turn ends.
  4. For first turn, the player can play any card
  5. Multi-color cards can be played on top of any card which is contained in the multi-color-card. (This feature is not implemented yet)
  6. Player with no cards left first wins the game.