de.tabacha.cgo.strategy
Class Dude

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

public class Dude
extends AbstractEngine

Dumb strategy, mainly for testing purposes.
$Id: Dude.java,v 1.13 2004/12/23 21:42:44 mk Exp $

Version:
$Revision: 1.13 $
Threadsafe?
true No data held

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
Dude()
          Constructor.
 
Method Summary
 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)
          Returns the best move.
 
Methods inherited from class de.tabacha.cgo.AbstractEngine
canPlayBothSides, getDescription, getI18nProperty, getName, initGame, random
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dude

public Dude()
Constructor.

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()

think

public Move think(Board position)
Returns the best move. Strategy: This is the straight way to victory.

Parameters:
position - The actual position
Returns:
The move the routine makes