public CellValueWithLocation(
     TicTacToeCellValue cellValue,
     TicTacToeLocation location)
 {
     _location = location;
     CellValue = cellValue;
 }
Exemplo n.º 2
0
        public void BestMovesTest()
        {
            TicTacToePosition board = TicTacToePosition.Empty.MakeMoves(
                "a1", "a2", "a3", "b3"
                );

            var bestMoves = board.BestMoves(); // .OrderBy(move => move);

            TicTacToeLocation[] expected = new TicTacToeLocation[] {
                "b2", "c1"
            };

            Assert.IsTrue(bestMoves.SequenceEqual(expected), string.Join(" ", bestMoves.AsEnumerable()));
        }