Class OthelloPiece

java.lang.Object
  extended byOthelloPiece

public final class OthelloPiece
extends Object

A Java "enum", which is used for the different pieces that can be on the board. The constructor is private in order to as closely simulate an enum as possible.

Version:
1.0
Author:
Matt Hoffman

Field Summary
static OthelloPiece Black
           
static OthelloPiece White
           
 
Method Summary
 Color color()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Black

public static final OthelloPiece Black

White

public static final OthelloPiece White
Method Detail

toString

public String toString()

color

public Color color()