edu.pdx.cs399J.security
Class GuessingGame

java.lang.Object
  extended by edu.pdx.cs399J.security.GuessingGame
All Implemented Interfaces:
Game

public class GuessingGame
extends Object
implements Game

This is a little guessing game that counts the number of times it takes the user to guess a number between one and ten.


Constructor Summary
GuessingGame()
           
 
Method Summary
 String getName()
          Returns the name of the game/
static void main(String[] args)
          Test program
 void play(GameConsole console)
          Plays the game
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuessingGame

public GuessingGame()
Method Detail

getName

public String getName()
Description copied from interface: Game
Returns the name of the game/

Specified by:
getName in interface Game

play

public void play(GameConsole console)
Plays the game

Specified by:
play in interface Game

main

public static void main(String[] args)
Test program



Copyright © 2000-2009 Portland State University. All Rights Reserved.