Class GoForIt

java.lang.Object
  |
  +--GoForIt

public class GoForIt
extends java.lang.Object

Main classes used to test your Player class, you may put your main in your player class or use goForIt.

calls BattleShip

BattleShip Key Methods:

public void headToHead( Player p1, Player p2, boolean fDetails=false )

Uses Polymorphism plays player p1 against p2
fDetails if true printouts details on each game default false

public void singleUserTestMode( Player p, int nGames = 500,
boolean fDetails = false )


Uses Polymorphism player is set to p
p plays nGames against himself, allowed up tooManyMoves to solve game
p doesn't place his own ships, default number of games is 500
for board printout after each game set fDetails to true
default is false

To play the game you are required to create a child subclass
based on the parent superclass Player

The name of your class will be PlayerYourThreeInitialsVersion you
may have upto three versions. But don't submit more than one version
unless they are significantly different. 
My player classes are PlayerTMD0

Message.java contains a list of message passed to method makeMove


Constructor Summary
GoForIt()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoForIt

public GoForIt()
Method Detail

main

public static void main(java.lang.String[] args)