Skip to content

groundberry/react-simon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simon game

This project is part of the Free Code Camp's front-end track. I'll build a Simon game using React.

Functionality

  • I am presented with a random series of button presses.
  • Each time I input a series of button presses correctly, I see the same series of button presses but with an additional step.
  • I hear a sound that corresponds to each button both when the series of button presses plays, and when I personally press a button.
  • If I press the wrong button, I am notified that I have done so, and that series of button presses starts again to remind me of the pattern so I can try again.
  • I can see how many steps are in the current series of button presses.
  • If I want to restart, I can hit a button to do so, and the game will return to a single step.
  • I can play in strict mode where if I get a button press wrong, it notifies me that I have done so, and the game restarts at a new random series of button presses.
  • I can win the game by getting a series of 20 steps correct. I am notified of my victory, then the game starts over.

Simon game

Technologies used

This app is built with React. I used Create React App to get it started.

For testing I used Jest, and Enzyme.

Running

Clone this repo:

$ git clone https://github.com/groundberry/react-simon

Install all dependancies:

$ npm install

Start the server:

$ npm start

Testing

Run the tests:

$ npm run test

Unit tests

Releases

No releases published

Packages

No packages published