Team Challenge

We've gone over a lot of material in just a couple days. We've leaned about arrays, conditionals, variables, arrays, functions and loops. This final exercise gives us a chance to combine all those elements into a single project.

This exercise is challenging and in order to complete it, you will need to go beyond what we have taught you. In Pursuit, we emphasize continuous learning and how to seek out and learn new information to solve problems.

This exercise is also meant to challenge your ability to work as a team. We are less interested in seeing a perfect solution, and more interested in your group successfully working together.

What we want to see:

  • You have utilized the resources given to you during this workshop
  • You have researched and attempted to learn additional concepts
  • You have given careful thought to how to best solve the problem
  • Clear communication among team members
  • All team members contribute to a common solution
  • The team maintains a positive culture

The Task

Your team will be responsible for creating a version of the game Rock, Paper, Scissors.

Core gameplay:

  • A prompt appears on the screen asking the user to select Rock, Paper, or Scissors
  • When the user clicks "OK", their throw is logged to the console
  • The computer randomly selects Rock, Paper, or Scissors, then the computer's throw is logged to the console
  • Your program looks at the two throws, and logs a message to the console that says if the player won, lost or if the game was a tie

Advanced Features:

  • Have a prompt come up that lets the player play the game again
  • If both the user and the computer pick the same thing, have the user/computer keep entering new throws until there is a winner or loser
  • Make a game a best of 3 instead of a single throw

Important resources:

  • In order to get prompts to work, you will need to use a repl at this link here
  • Click on "script.js" on the left to start writing javascript, and click on "console" on the right to see the console
  • Use prompt("Your prompt here") to make an alert with a text field appear on the screen. More information can be found at the documentation here
  • Here is an example of a CLI game: Rock Paper Scissors. Everything you see is taking place in the console. In this example the input “node rps.js” is the equivalent of hitting “run”.