Simple implementation of Rock Paper Scissors game from The Odin Project curriculum.
The game is played against the computer. Whoever achieves five points first, wins the game.
- Clone or download this repo
- Open your terminal and navigate to the
rock-paper-scissors
folder - Load
index.html
in your browser - Enjoy the game
- JavaScript, CSS and HTML
- Test suite: Jest
- Achieved the required functionalities (playing a single round, restarting the game when the winner reaches 5 points)
- Improved my understanding of JavaScript functions (organisation, scopes, calling, invoking, refactoring)
- Learnt how to create modals using CSS
- Managed to get the test suite to run which involved moving the event listeners to a seperate file
- Managed to test some of the functions, however there were difficulties testing some of the complicated functions due to error messages in the test suite
- Responsiveness could be improved, not responsive on small screens (e.g. phones)
- Cannot play on phone, modal will not close