public void CurrentPlayerisOTest() { tictactoe tictactoe = new tictactoe(); string currentplayer = tictactoe.CurrentPlayer(1); Assert.AreEqual("O", currentplayer); }
public void BoardIsNineField() { tictactoe tictactoe = new tictactoe(); tictactoe.CreateBoard(); Assert.AreEqual(9, tictactoe.TictactoeArray.Length); }
public void testUnoccupied() { tictactoe foo = new tictactoe(); foo.createBoard(); Assert.AreEqual(foo.board[0, 0], '\0'); }
public void testO() { tictactoe foo = new tictactoe(); foo.changePlayer(); Assert.AreEqual('o', foo.currentPlayer()); }
public void CurrentPlayerPlaceO() { tictactoe tictactoe = new tictactoe(); tictactoe.CreateBoard(); tictactoe.MakeMove(1, "O"); Assert.AreEqual("O", tictactoe.TictactoeArray[1]); }
public void CurrentPlayerPlaceX() { tictactoe tictactoe = new tictactoe(); tictactoe.CreateBoard(); tictactoe.MakeMove(2, "X"); Assert.AreEqual("X", tictactoe.TictactoeArray[2]); }
public void placementTestX() { tictactoe foo = new tictactoe(); foo.createBoard(); foo.makeMove(0, 0, foo.currentPlayer()); Assert.AreEqual(foo.board[0, 0], 'x'); }
public void placementIsUsed() { tictactoe tictactoe = new tictactoe(); tictactoe.CreateBoard(); bool inUsed = tictactoe.SpaceinUse(3); Assert.AreEqual(false, inUsed); }
public void nineFieldsTest() { tictactoe foo = new tictactoe(); int check = 0; try { foo.createBoard(); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { Assert.AreEqual(foo.board[i, j], '\0'); } } } catch (Exception ex) { } }
private void Awake() { Script = Camera.GetComponent <tictactoe>(); }
public void testX() { tictactoe foo = new tictactoe(); Assert.AreEqual('x', foo.currentPlayer()); }
private void TicTacToe_Click(object sender, EventArgs e) { tictactoe game = new tictactoe(); game.checkGameWinner(game.getBoard()); }