debug
Class Debug

java.lang.Object
  extended by debug.Debug
Direct Known Subclasses:
PositionTimeTest

public abstract class Debug
extends java.lang.Object

This is the debug utility for Myriad. It is a slightly modified version of the robot judge. The input file has reads FEN strings line by line. Start a line with * to have the string treated as a comment.

Author:
Jesse Wang

Constructor Summary
Debug()
           
 
Method Summary
 void startTest(java.lang.String testFileName, java.lang.String outputFile)
          This is a testing utility.
abstract  java.lang.String test(Position p)
          This method tests whatever you want to test.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()
Method Detail

test

public abstract java.lang.String test(Position p)
This method tests whatever you want to test.

Parameters:
p - The Position object to test.
Returns:
A string describing the test results. Test

startTest

public void startTest(java.lang.String testFileName,
                      java.lang.String outputFile)
This is a testing utility. It allows you to specify a general comment along with the test cases describing the test. This outputs a file in the debug folder with a name specified by the user.

Parameters:
testFileName - The input test cases.
outputFile - The output file.