Skip to content

mean-april-2017/simon-laura-lauren-bennett

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simon

Setup

  1. Clone the repo
    [email protected]:mean-april-2017/simon-david.git
    
  2. Create New Repo in Org and Set Remote
    cd simon-david
    git remote set-url origin [email protected]:mean-april-2017/simon-your-name
    git push origin master
    
  3. Run npm install
  4. Run npm start

Rules

Red Yellow
Blue Green

2 players alternate turns. When it is each player's turn, they must click the pattern that the last player clicked, and then add a new color. The first player to mess up the pattern looses.

ex:

1: R
2: RG
1: RGB
2: RGBR
1: RGBRY
2: RGBRYG
1: RGBG  #PLAYER 1 LOST!

Challenge 1

  • create the colored boxes in grid
  • show current player
  • when box is pressed
    • alternate player
    • display the last pressed color

Challenge 2

  • players enter their names
  • player doesn't alternate until they've finished pattern (and added to pattern)
  • player loses if incorrectly clicked pattern

Challenge 3

  • when player loses
    • show option to reset game
    • show the game history
      • RED
      • YELLOW
      • BLUE
      • BLUE
      • RED
      • GREEN
  • keep track of wins/losses for player 1 / player 2
  • show highscores