Back to DFS's Java Page


ICS4M Java Problem Set II

A Simple Game Using Graphics Files

For this problem, you will make use of two important features of Java, events and graphics, while programming an applet.

Write a 300 x 200 applet that allows the user to play the classic game Rock, Paper, Scissors against the computer. Your program is to display a picture for each player's choice. Your program should indicate the result using a complete sentence.

View the following applet and its code to see how to display a graphics file.
Applet Code

View the following applet and its code to see a text version of the game.
Applet Code


Adapted from a problem by John Ketelaars
© DFStermole 2005
Created 26 Sept 2005