public void GetRandomMove()
        {
            var board     = new SquareBoard(4);
            var generator = new MoveGenerator(board);

            const int repeat = 10000;

            for (int i = 0; i < repeat; ++i)
            {
                var cellIndices = generator.GetMove();
                Assert.IsTrue(board.CellIsAdjacentToEmpty(cellIndices));
            }
        }
Exemplo n.º 2
0
 public void InvalidMoveException()
 {
     MoveGenerator.GetMove(5);
 }