GeneThello Home

net.sf.genethello.applet.gametheory
Interface Board

All Known Implementing Classes:
Board

public interface Board

Interface to simulate board of game.

Author:
Administrator

Method Summary
 boolean equals(Board other)
          Compares equality of two boards.
 long getZobristKey()
          Get Zobrist key, a long number reflecting a board position to be used for faster and more space efficient transposition tables and opening books.

To use this feature, the following should be done: Declares transpositionMaxIndex to be (power of two) - 1 somewhere in program initialization.
e.g.
 boolean isUnquiet()
          Indicates that a position is not in quiescence state, i.e.
 void updateZobristKeyOnTurn(int turn)
          Updates zobrist key when turn changes.
 

Method Detail

getZobristKey

long getZobristKey()
Get Zobrist key, a long number reflecting a board position to be used for faster and more space efficient transposition tables and opening books.

To use this feature, the following should be done:

Returns:
Zobrist key

updateZobristKeyOnTurn

void updateZobristKeyOnTurn(int turn)
Updates zobrist key when turn changes.

Parameters:
turn -

isUnquiet

boolean isUnquiet()
Indicates that a position is not in quiescence state, i.e. the horizon effect is large.

Returns:
true if state is not quiescence, or false otherwise

equals

boolean equals(Board other)
Compares equality of two boards.

Parameters:
other - board
Returns:
true if two boards are equal, or false otherwise

GeneThello Home

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