Example #1
0
 public TileMover(LegalMovesCalculator legalMovesCalculator, MovementDeltaCalculator movementDeltaCalculator,
                  MisplacedTilesCounter misplacedTilesCounter)
 {
     this.legalMovesCalculator    = legalMovesCalculator;
     this.movementDeltaCalculator = movementDeltaCalculator;
     this.misplacedTilesCounter   = misplacedTilesCounter;
 }
Example #2
0
        private void TestMovement(Movement movement, int expected)
        {
            MovementDeltaCalculator movementDeltaCalculator = new MovementDeltaCalculator();
            AccessibleBoard         board = new AccessibleBoard
            {
                AccessibleSize = SIZE
            };

            int delta = movementDeltaCalculator.GetMovementDelta(board, movement);

            Assert.Equal(expected, delta);
        }