CS 0004 Project 1: Rock, Paper, Scissors

Interface due: In class, Thursday, February 9th, 2006

Completed program: Thursday, February 16th, 2006

 

Introduction

Your first project will be making the game of “Rock, paper, scissors.” For those unfamiliar with the rules, typically the game is played with two people who use hand gestures to represent a rock (closed fist), paper (an open hand), or scissor (a “V” made with your fingers.) Each person displays their choice at the same time and the winner is determined by (winner in bold):

 

Scissors cut paper, paper covers rock, rock breaks scissors

 

Your job will be to write a program where a human can play against the. Have the human player enter their choice, and then have the computer randomly pick its choice. For each game you will display what the computer has chosen, and who the winner is.

 

Interface

 

A screenshot of the interface is shown below. For this first project, I want you to as closely replicate this as possible. It doesn’t need to be perfect (no need to count dots or anything.) The font is 14 point in the example and the text alignment

 

The player should pick their guess by selecting a button from the row at the bottom. When a button is chosen, the computer should make its guess, that guess should be displayed in the top label, and the winner of the match should be shown in the center.

 

Example Run:

 

What you need to do and when

 

There are two deadlines for this project. The first is in 1 week where I want you to bring your interface to class to show me. Load it onto a flash drive or disk and bring it to class ready to demonstrate.

 

The final deadline will be a week after that for the entire program. Submission details will be forthcoming. You will be turning in your code and a working program for me to test.

Hints and Suggestions