Ejemplo n.º 1
0
    public static ChessBoard ClassicVariantBoard()
    {
        ChessVariantOptions options = new ChessVariantOptions();
        Point4     size             = new Point4(4, 4, 4, 4);
        ChessBoard board            = new ChessBoard(size, options);

        /*
         * WHITE TEAM
         */

        board.AddChessPiece(0, 1, 0, 0, ChessPiece.Type.BISHOP, ChessPiece.Team.WHITE);
        board.AddChessPiece(1, 1, 0, 0, ChessPiece.Type.KING, ChessPiece.Team.WHITE);
        board.AddChessPiece(2, 1, 0, 0, ChessPiece.Type.QUEEN, ChessPiece.Team.WHITE);
        board.AddChessPiece(3, 1, 0, 0, ChessPiece.Type.BISHOP, ChessPiece.Team.WHITE);

        board.AddChessPiece(1, 1, 1, 0, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(2, 1, 1, 0, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);

        board.AddChessPiece(0, 2, 0, 0, ChessPiece.Type.ROOK, ChessPiece.Team.WHITE);
        board.AddChessPiece(1, 2, 0, 0, ChessPiece.Type.KNIGHT, ChessPiece.Team.WHITE);
        board.AddChessPiece(2, 2, 0, 0, ChessPiece.Type.KNIGHT, ChessPiece.Team.WHITE);
        board.AddChessPiece(3, 2, 0, 0, ChessPiece.Type.ROOK, ChessPiece.Team.WHITE);

        board.AddChessPiece(1, 2, 1, 0, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(2, 2, 1, 0, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);

        board.AddChessPiece(0, 2, 0, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(3, 2, 0, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);

        board.AddChessPiece(0, 1, 1, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(1, 1, 1, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(2, 1, 1, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(3, 1, 1, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(1, 1, 0, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(2, 1, 0, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);

        board.AddChessPiece(0, 2, 1, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(3, 2, 1, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(1, 2, 0, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);
        board.AddChessPiece(2, 2, 0, 1, ChessPiece.Type.PAWN, ChessPiece.Team.WHITE);

        /*
         * BLACK TEAM
         */

        board.AddChessPiece(0, 1, 3, 3, ChessPiece.Type.BISHOP, ChessPiece.Team.BLACK);
        board.AddChessPiece(1, 1, 3, 3, ChessPiece.Type.KING, ChessPiece.Team.BLACK);
        board.AddChessPiece(2, 1, 3, 3, ChessPiece.Type.QUEEN, ChessPiece.Team.BLACK);
        board.AddChessPiece(3, 1, 3, 3, ChessPiece.Type.BISHOP, ChessPiece.Team.BLACK);

        board.AddChessPiece(1, 1, 2, 3, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(2, 1, 2, 3, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);

        board.AddChessPiece(0, 2, 3, 3, ChessPiece.Type.ROOK, ChessPiece.Team.BLACK);
        board.AddChessPiece(1, 2, 3, 3, ChessPiece.Type.KNIGHT, ChessPiece.Team.BLACK);
        board.AddChessPiece(2, 2, 3, 3, ChessPiece.Type.KNIGHT, ChessPiece.Team.BLACK);
        board.AddChessPiece(3, 2, 3, 3, ChessPiece.Type.ROOK, ChessPiece.Team.BLACK);

        board.AddChessPiece(1, 2, 2, 3, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(2, 2, 2, 3, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);

        board.AddChessPiece(0, 2, 3, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(3, 2, 3, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);

        board.AddChessPiece(0, 1, 2, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(1, 1, 2, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(2, 1, 2, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(3, 1, 2, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(1, 1, 3, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(2, 1, 3, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);

        board.AddChessPiece(0, 2, 2, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(3, 2, 2, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(1, 2, 3, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);
        board.AddChessPiece(2, 2, 3, 2, ChessPiece.Type.PAWN, ChessPiece.Team.BLACK);

        return(board);
    }