This the code behind the Rock, Paper, Scissors (RPS) battle game for the Geocaching puzzle (GC2ND9P).
This script allows a user to interact with three symbols (rock, paper, scissors) displayed on the screen as their choice in the standard Rock, Paper, Scissors (RPS) battle game. A score for player and computer appear above the hand symbols. In this adapted version, one the player's score reaches 10 or higher, a "Congratulations" section appears displaying the final coordinates for a Geocache starting location.
However, if the computer wins 10 times, before the player wins 10 times, the round is over. The match must be restarted.
Original Code from:
Code adopted for standalone by:
Greg Jewett, http://geocaching.ejewett.com/
Acknowledgements:
Original code: https://codepen.io/bradtraversy/pen/wLgPzr
Hand Graphics: Font Awesome (https://fontawesome.com/)
Requirements:
- rps.html (this file)
- rps.css (CSS Stylesheet)
- rps.js (JavaScript interaction code)
- images/congratulations.gif (Animated gif)
- Access to URL: https://kit.fontawesome.com/3da1a747b2.js (to display hand icons)