GeneThello Home

net.sf.genethello.gametheory
Class Move

java.lang.Object
  extended by net.sf.genethello.gametheory.Move
Direct Known Subclasses:
RatedMove

public class Move
extends java.lang.Object

A move of game represented by an index on the board.

Author:
Administrator

Field Summary
 int index
           
 
Constructor Summary
Move(int i)
          Creates a new instance of Move
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares equality of two moves.
 int hashCode()
          Creates hash code of a move.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

public int index
Constructor Detail

Move

public Move(int i)
Creates a new instance of Move

Method Detail

equals

public final boolean equals(java.lang.Object obj)
Compares equality of two moves.

Overrides:
equals in class java.lang.Object
Parameters:
obj - another move
Returns:
true if two moves are equal, or false otherwise

hashCode

public final int hashCode()
Creates hash code of a move.

Overrides:
hashCode in class java.lang.Object
Returns:
board index as hash code

GeneThello Home

Get GeneThello: Genetic Othello at SourceForge.net. Fast, secure and Free Open Source software downloads