Assigment made for Codaissuer
- Clone the repo.
- Run
yarn
to install dependencies. - Run
yarn start
.
- The folder lib contains game logic.
- In actions folder I imported the randomWord function of the logic and exported the 2 actions (NewGame and makeGuess).
- Passed those actions to the reducers, one for the game and another for the guesses.
- The components, hangman for the total game and letters for each guess.
- One container for the componets (Board) which is passed to the App.js.
- Fixing the problem when submiting a number or a letter twice.
- Adding some nice styling