Simple implementation of grade-school classic “rock paper scissors”. It is part of the curriculum for The Odin Project's Foundation path.
You can play the game online in browser console here.
- Nice shuffling for rock paper scissors choices
- Light/Dark mode
- The winner is displayed at the end of the game.
- The game keeps running and calculating points.
- Responsive mobile-first design
You can play the game online in browser console here.
To run this program locally, you can clone the repository to your local machine using the following command:
git clone https://github.com/i4pg/rock-paper-scissors.git
Then open the index.html
file in your web browser to start playing the game.
Or simply run to play in your Terminal
$ node scripts/app.js
- Implement core logic
- Get random choice for computer
- Get player choice manually
- Winning logic
- Core logic
- Add comparing function
-
return
proper value
- Game rounds
- Single round
- Loop 5 times
-
console.log
each round's score -
console.log
the end result - Report about the winner
- Use
prompt
to get user input - UI
- Enhance Node environment visibility
- run game.js from gameConsole.js
- Browser
- wireframe
- night/dark mode
- header
- Quit button "Scripts may close only the windows that were opened by them :( "
- intro
- main
- footer
- game over UI
- controllers
- 5 rounds game
Contributions to this project are welcome. To contribute, follow these steps:
-
Fork this repository.
-
Create a new branch with your changes:
git checkout -b my-new-branch
-
Make your changes and commit them:
git commit -am 'Add some feature'
-
Push your changes to your forked repository:
git push origin my-new-branch
-
Create a pull request on this repository.
This project is licensed under the MIT License. See the LICENSE file for details.