de.tabacha.cgo.strategy
Class ModernMikeGo

java.lang.Object
  extended byde.tabacha.cgo.AbstractEngine
      extended byde.tabacha.cgo.strategy.NoRecursionTemplate
          extended byde.tabacha.cgo.strategy.ModernMikeGo
All Implemented Interfaces:
Constants, Engine

public class ModernMikeGo
extends NoRecursionTemplate

Does roughly the same as MikeGo, but uses the NoRecursionTemplate class.
$Id: ModernMikeGo.java,v 1.7 2004/07/30 21:06:47 mk Exp $

Version:
$Revision: 1.7 $
Threadsafe?
false

Field Summary
 
Fields inherited from interface de.tabacha.cgo.Constants
BALL, COL_COUNT, DCOL, DOWN, DROW, E, EMPTY, FIRST_DIRECTION, KICK_OFF_FIELD, LAST_DIRECTION, N, NE, NW, OPPOSITE, PIECE, ROW_COUNT, S, SE, SW, UP, UPSIDEDOWN, W
 
Constructor Summary
ModernMikeGo()
          Constructor.
ModernMikeGo(int minrow, int maxrow, int ballrow, int jumpmalus)
           
 
Method Summary
protected  Move bestMove()
           
 java.lang.String getAuthor()
          Returns the localized version of the author property.
 java.lang.String getVersion()
          Returns the localized version of the version property.
protected  void initNewMoveSearch()
           
protected  boolean jumpFound(Jump j, int min, int max)
           
protected  boolean putFound(Put p)
           
 java.lang.String toString()
           
 
Methods inherited from class de.tabacha.cgo.strategy.NoRecursionTemplate
board, canPlayBothSides, getMinMaxRow, minMaxFound, think
 
Methods inherited from class de.tabacha.cgo.AbstractEngine
getDescription, getI18nProperty, getName, initGame, random
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModernMikeGo

public ModernMikeGo()
Constructor.


ModernMikeGo

public ModernMikeGo(int minrow,
                    int maxrow,
                    int ballrow,
                    int jumpmalus)
Method Detail

getVersion

public java.lang.String getVersion()
Description copied from class: AbstractEngine
Returns the localized version of the version property. If this property is the same for all languages or needs special treatment, overwrite this method.

Specified by:
getVersion in interface Engine
Overrides:
getVersion in class AbstractEngine
See Also:
Engine.getVersion()

getAuthor

public java.lang.String getAuthor()
Description copied from class: AbstractEngine
Returns the localized version of the author property. If this property is the same for all languages or needs special treatment, overwrite this method.

Specified by:
getAuthor in interface Engine
Overrides:
getAuthor in class AbstractEngine
See Also:
Engine.getAuthor()

initNewMoveSearch

protected void initNewMoveSearch()
Overrides:
initNewMoveSearch in class NoRecursionTemplate

jumpFound

protected boolean jumpFound(Jump j,
                            int min,
                            int max)
Specified by:
jumpFound in class NoRecursionTemplate
Returns:
true if the move is found

putFound

protected boolean putFound(Put p)
Specified by:
putFound in class NoRecursionTemplate
Returns:
true if the move is found

bestMove

protected Move bestMove()
Specified by:
bestMove in class NoRecursionTemplate

toString

public java.lang.String toString()