com.bolinfest.prisonerbot
Class Choice

java.lang.Object
  extended by com.bolinfest.prisonerbot.Choice

public final class Choice
extends Object

Choice is a typesafe enumeration of the choices available to each Player.

Author:
mbolin

Field Summary
static Choice COOPERATE
          the player chooses to cooperate
static Choice DEFECT
          the player chooses to defect
 
Method Summary
 String getShortName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COOPERATE

public static final Choice COOPERATE
the player chooses to cooperate


DEFECT

public static final Choice DEFECT
the player chooses to defect

Method Detail

getShortName

public String getShortName()

toString

public String toString()
Overrides:
toString in class Object