tictactoe
Class TestDriver

java.lang.Object
  |
  +--tictactoe.TestDriver

public class TestDriver
extends java.lang.Object

Test Driver for TicTacToe. Instantiates a number of games and checks if the final state and winner is as expected.

Version:
2.0 1999-03-26
Author:
Oscar.Nierstrasz@acm.org

Constructor Summary
TestDriver()
           
 
Method Summary
static void doGomokuTests()
           
static void doTicTacToeTests()
           
static void main(java.lang.String[] args)
           
static void testGame(BoardGame game, java.lang.String winner, int squaresLeft)
          Run a game with simulated input for X and Y, and check that the winner is as expected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestDriver

public TestDriver()
Method Detail

main

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

doGomokuTests

public static void doGomokuTests()

doTicTacToeTests

public static void doTicTacToeTests()

testGame

public static void testGame(BoardGame game,
                            java.lang.String winner,
                            int squaresLeft)
Run a game with simulated input for X and Y, and check that the winner is as expected.