public void DetermineGameOverStateTestInProgress() { var gameLogic = new GameLogic(); var game = new Game(); game.Cells = new int[,] { { 2, 1, 0, 1 }, { 1, 2, 1, 2 }, { 1, 2, 1, 2 }, { 1, 2, 1, 2 }, }; Assert.AreEqual(GameOverState.InProgress, gameLogic.DetermineGameOverState(game)); }
public void DetermineGameOverStateTestRedWinColumn() { var gameLogic = new GameLogic(); var game = new Game(); game.Cells = new int[,] { { 0, 0, 0, 1 }, { 0, 0, 2, 1 }, { 0, 0, 2, 1 }, { 0, 2, 2, 1 }, }; Assert.AreEqual(GameOverState.RedWin, gameLogic.DetermineGameOverState(game)); }
public void DetermineGameOverStateTestRedWinDiag1() { var gameLogic = new GameLogic(); var game = new Game(); game.Cells = new int[,] { { 1, 0, 0, 0 }, { 2, 1, 0, 0 }, { 2, 2, 1, 2 }, { 1, 2, 1, 1 }, }; Assert.AreEqual(GameOverState.RedWin, gameLogic.DetermineGameOverState(game)); }