Rock Paper Scissors

From CompSciWiki
Revision as of 02:32, 6 April 2010 by DavidY (Talk | contribs)

Jump to: navigation, search

Back to the Program-A-Day homepage

Problem

Rock-Paper-Scissors is a game played by two players with a one in three chance of winning. The outcome of each round will result the player to either win, lose, or tie. In this example, we're going to make a simulation of the game, Rock-Paper-Scissors, to play against the computer.

 

SideSectionTitle

float
Taken from http://www.flickr.com/photos/daniello/565304023/

An image or By Students section

Solution

The solution...

Code

Solution Code

Back to the Program-A-Day homepage