public void GetPossibleMovesOneFullColumn() { C4Board board = new C4Board(); for (int i = 0; i < board.Height; i++) { board.MakeMove(new C4Move(3)); } Assert.AreEqual(board.Width - 1, board.PossibleMoves().Count); }
public void GetPossibleMovesFullBoard() { C4Board board = new C4Board(); for (int y = 0; y < board.Height; y++) { for (int x = 0; x < board.Width; x++) { board.MakeMove(new C4Move(x)); } } Assert.AreEqual(0, board.PossibleMoves().Count); }
public void GetPossibleMovesEmptyBoard() { C4Board board = new C4Board(); Assert.AreEqual(board.Width, board.PossibleMoves().Count); }