player.strategy
Class DumbHeadNorth
java.lang.Object
|
+--player.Strategy
|
+--player.strategy.DumbHeadNorth
- public class DumbHeadNorth
- extends Strategy
A dumb "head north" strategy.
- Version:
- $Revision: 1.3 $
- Author:
- Allen D. Ball
Constructor Summary |
DumbHeadNorth()
Creates a dumb "head north" player strategy. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DumbHeadNorth
public DumbHeadNorth()
- Creates a dumb "head north" player strategy.
nextCommand
public Command nextCommand()
- Description copied from class:
Strategy
- Method to calculate the player's robot next command.
- Overrides:
nextCommand
in class Strategy
- Following copied from class:
player.Strategy
- Returns:
- The next command to send to the player's
robot.
Copyright 2002 Allen D. Ball. All rights reserved.