de.tabacha.cgo.strategy
Class MikeGo
java.lang.Object
de.tabacha.cgo.AbstractEngine
de.tabacha.cgo.strategy.MikeGo
- All Implemented Interfaces:
- Constants, Engine
- public class MikeGo
- extends AbstractEngine
My old strategy, converted from pascal.
A really ugly piece of code, but doesn't matter since all methods are private.
$Id: MikeGo.java,v 1.12 2004/07/30 21:06:47 mk Exp $
- Version:
- $Revision: 1.12 $
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 |
Method Summary |
boolean |
canPlayBothSides()
This default implementation always returns false. |
java.lang.String |
getAuthor()
Returns the localized version of the author property.
|
java.lang.String |
getVersion()
Returns the localized version of the version property.
|
Move |
think(Board position)
Thinking here. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MikeGo
public MikeGo()
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()
canPlayBothSides
public boolean canPlayBothSides()
- Description copied from class:
AbstractEngine
- This default implementation always returns false.
- Specified by:
canPlayBothSides
in interface Engine
- Overrides:
canPlayBothSides
in class AbstractEngine
- See Also:
Engine.canPlayBothSides()
think
public Move think(Board position)
- Thinking here.
- Parameters:
position
- The actual position
- Returns:
- The move the routine makes