CMSC104, Spring 2008

Programming Project 2

Rock, Paper, Scissors!


Out: Thursday, April 10, 2008
Due Date: Sunday, April 20, 2008 before 11:59 p.m.

The Objective

This project is designed to give you practice with loops and switch statements. You will also get practice designing and writing your first JavaScript program from scratch.

The Task

The program you write will implement the classic game of Rock, Paper, Scissors. If you are not familiar with the game, please read the Wikipedia page about the game. Your program should allow the user to play against the computer. You should keep a running total of the number of player wins, losses, draws (ties) and games played. When the user is finished playing, you should display the statistics for that run of games.

Screenshots

Welcome screen

Get ready screen

User entering incorrect input

Error message for incorrect input

Getting the input

Showing the computer's guess

Displaying the results

Asking to play again - yes

Getting another input

Showing the computer's guess

Displaying the results

Asking to play again - no

Displaying the statistics

Submitting the Program

You do not have to do anything to submit the program. It should be in your pub/www/cs104/proj2 directory.