Skip to content

araujodanield/odin-rock-paper-scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leia este documento em português

Rock Paper Scissors Game

Third project of The Odin Project's course.

This is a two-versions project of a rock paper scissors game to practice the use of multiple functions and DOM manipulation with JavaScript.


Console Version

In this first version of the project the game is meant to be played totally on your browser's console. You'll play five rounds against the machine.

How to Play:

  1. With the game homepage open, press Ctrl + Shift + i on your keyboard, this will open the Console panel of DevTools;

  2. Click on the white space, write "game()" and press Enter;

  • If you wants to play again after finish the five rounds or cancel the game, you can just press UpArrow ↑ + Enter in your keyboard and this will start the game without need of write the function again;

  • If you want to clear your previous rounds, write "clear()" and press Enter, or press the clear button on the console panel.


Interactive Version

In this version, the rules are a little different. Instead of playing just five rounds, here you'll be playing unlimited rounds until you or the machine scores 5 points.

How to Play:

  • When you open the page, you will see three buttons, representing yours options;
  • Click on any of them and the game will start;
  • When someone gets 5 points, the game will end and an overlay announcing the winner will appear along with a "Play Again" button which, if clicked, will restart the game.

Project's next steps:

  • Change the design of the page to look more like a game;
  • Add background music and sound effects (with the option to turn them off);
  • Try to refactor some parts of the code;
  • Change this README file to make it more visual.

About

Third project of The Odin Project course. A playable game of Rock Paper Scissors.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published