Skip to content

This the code behind the RPS game for the Geocaching puzzle (GC2ND9P).

Notifications You must be signed in to change notification settings

jewettg/geocaching_rps_GC2ND9P

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geocaching_rps_GC2ND9P

This the code behind the Rock, Paper, Scissors (RPS) battle game for the Geocaching puzzle (GC2ND9P).

Javascript: Rock, Paper, Scissors Game

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:

https://codepen.io/bradtraversy/pen/wLgPzr

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)

About

This the code behind the RPS game for the Geocaching puzzle (GC2ND9P).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published