@@ -0,0 +1,1135 @@
+package org.huajistudio.utils;%0A%0Aimport org.huajistudio.api.*;%0Aimport java.lang,Math;%0A%0Aclass ChessHelper %7B%0A    public static boolean CanMoveTo(ChessObject chess, Board.BoardPos pos, Board board)%0A    %7B%0A        int curx = chess.pos.x;%0A        int cury = chess.pos.y;%0A        int endx = pos.x;%0A        int endy = pos.y;%0A        boolean flag = true;%0A        switch (chess.type)%0A        %7B%0A            case ChessType.KING:%0A                if (Math.abs(curx-endx)%3E1 && Math.abs(cury-endy)%3E1)%0A                %7B%0A                    flag = false;%0A                %7D%0A                break;%0A                %0A            case ChessType.QUEEN:%0A                %0A                %0A                break;%0A                %0A            case ChessType.POPE:%0A                %0A                %0A                break;%0A                %0A            case ChessType.KNIGHT:%0A                %0A                %0A                break;%0A                %0A            case ChessType.CASTLE:%0A                %0A                %0A                break;%0A                %0A            case ChessType.PAWN:%0A                %0A                %0A                break;%0A        %7D%0A    %7D%0A%7D%0A

Create ChessHelper, unfinished, finish later :0