Exemplo n.º 1
0
        public void SinglePiece()
        {
            var piece = new Piece(Side.Player1, 5,
                                  new ShapeOrientation(Shape.Cross, Orientation.LeftFlip),
                                  new ShapeOrientation(Shape.Crown, Orientation.LeftFlip));

            var pathSet = MoveGenerator.GetPathSet(piece.Shapes);

            var result = TestEndSquares(pathSet,
                                        new Vector(0, -1),
                                        new Vector(-2, -1),
                                        new Vector(-1, 0),
                                        new Vector(-1, -2),
                                        new Vector(0, 0),
                                        new Vector(-2, 0),
                                        new Vector(-1, 1),
                                        new Vector(-1, -1),
                                        new Vector(0, 1),
                                        new Vector(-2, 1),
                                        new Vector(-1, 2),
                                        new Vector(-1, 0)
                                        );

            Assert.IsTrue(string.IsNullOrEmpty(result), result);
        }