package pylos.test;

import pylos.ai.State;

public class AITest extends PylosTestCase {

	// public void testAI() {
	// MainTest.gameSample();
	// /**
	// * ooo.
	// * ooo. o..
	// * ..o. ...
	// * .... ...
	// */
	// for (int i = 0; i < 8; i++) {
	// AlphaBeta.AI();
	// }
	// }

	public void testEval() {
		MainTest.gameSample();
		State s = new State();
		System.out.println(s.evaluate());
	}
}

@@ -36,16 +36,71 @@
 i.State;
+%0Aimport pylos.model.Model;%0Aimport pylos.model.Position;
 %0A%0Apublic
@@ -330,16 +330,1325 @@
 %0A%09// %7D%0A%0A
+%09// public void testEval() %7B%0A%09// MainTest.gameSample();%0A%09// State s = new State();%0A%09// // System.out.println(s.evaluate());%0A%09// %7D%0A%0A%09public void testEval2() %7B%0A%09%09Model.currentPlayer.putBallOnBoard(Position.at(0, 0, 0));%0A%09%09Model.currentPlayer.putBallOnBoard(Position.at(2, 1, 0));%0A%09%09Model.currentPlayer.putBallOnBoard(Position.at(0, 2, 0));%0A%09%09Model.currentPlayer.putBallOnBoard(Position.at(1, 2, 0));%0A%09%09Model.currentPlayer.putBallOnBoard(Position.at(0, 3, 0));%0A%09%09Model.otherPlayer().putBallOnBoard(Position.at(3, 0, 0));%0A%09%09Model.otherPlayer().putBallOnBoard(Position.at(1, 1, 0));%0A%09%09Model.otherPlayer().putBallOnBoard(Position.at(1, 3, 0));%0A%09%09Model.otherPlayer().putBallOnBoard(Position.at(2, 3, 0));%0A%09%09Model.otherPlayer().putBallOnBoard(Position.at(0, 2, 1));%0A%09%09/**%0A%09%09 * o..x%0A%09%09 * .xo. ...%0A%09%09 * oo.. ...%0A%09%09 * oxx. x..%0A%09%09 */%0A%09%09State s = new State();%0A%09%09System.out.println(s.evaluate());%0A%09%7D%0A%0A%09// public void testGetLines() %7B%0A%09// State s = new State();%0A%09// assertEquals(18, s.getLines().size());%0A%09// assertEquals(13, s.getSquare().size());%0A%09// %7D%0A%09//%0A%09// public void testCountPoint() %7B%0A%09// MainTest.gameSample();%0A%09// /**%0A%09// * ooo.%0A%09// * ooo. o..%0A%09// * ..o. ...%0A%09// * .... ...%0A%09// */%0A%09// State s = new State();%0A%09// assertEquals(70, s.anyLinesOrSquarePoint(s.currentPlayer));%0A%09// assertEquals(2, s.evaluate());%0A%09// %7D%0A
 %09public 

format + organize imports ...