Welcome to my milestone project, It is Rock Paper Scissors, an online game where you can test your luck against the computer!
This project is a simple web-based implementation of the classic game "Rock Paper Scissors". Players can choose their weapon and see if they can beat the computer.
To run this project locally, follow these steps:
- Clone this repository to your local machine.
- Open the project directory in your code editor.
- Open
index.html
in your web browser to start the game.
- Once the game is loaded, click on the "Start Game" button to begin.
- Choose your weapon (rock, paper, or scissors) by clicking on the corresponding button.
- See the computer's choice and the result of the game displayed on the screen.
- To play again, click on the "Home" button to return to the landing page.
To run tests for this project using Jest:
- Install Jest by running
npm install --save-dev jest
. - Navigate to the
__tests__
directory. - Write test cases for each function in your JavaScript file.
- Run tests using the command
npm test
.
- HTML5
- CSS
- JavaScript
- Bootstrap: Responsiveness and Styling
- Google Fonts: Fonts used in the project.
- FontAwesome: Icons used in the project.
- Coolors.co: Used for generating colour palettes.
- Canva.com: Used for creating images for choices and background.
- YouTube & FreeCodeCamp.org: Sources of inspiration and learning.Learn JavaScript by Building 7 Games -- I used the code given in the first part of this video and built up from it --
- CodeInstitute GitHub Repository Template: Used as a project structure template.
- W3C HTML index.htmlgame.html
- W3C CSS CSS test
- JSHint JS Test
- As a player, I want to be able to choose between rock, paper, and scissors.
- As a player, I want to see the computer's choice.
- As a player, I want to see the result of the game.
- As a player, I want to be able to restart the game.
Special thanks to all the contributors and resources that helped in the development of this project.