package util.gdl.model;
import util.game.Game;
import util.game.GameRepository;
public class GameFlowTester {
//This doesn't really "test" the game flow so much as let us
//examine it to evaluate it.
public static void main(String[] args) {
String gameName = "tictactoe";
Game theGame = GameRepository.getDefaultRepository().getGame(gameName);
GameFlow flow = new GameFlow(theGame.getRules());
System.out.println("Size of flow: " + flow.getNumTurns());
System.out.println("Sentence forms in flow: " + flow.getSentenceForms());
for(int i = 0; i < flow.getNumTurns(); i++) {
System.out.println("On turn " + i + ": " + flow.getSentencesTrueOnTurn(i));
}
System.out.println("Turn after last: " + flow.getTurnAfterLast());
}
}