示例#1
0
 public void Move(string square)
 {
     int[] move_array = new int[2];
     if (PGNReader.decodeMove(this, square, move_array))
     {
         Move(move_array[0], move_array[1]);
     }
 }
示例#2
0
        public bool canMove(string square)
        {
            int[] move_array = new int[2];
            if (PGNReader.decodeMove(this, square, move_array))
            {
                return(canMove(move_array[0], move_array[1]));
            }

            return(false);
        }
示例#3
0
        public bool setup_fen(string fen_string) //Returns true if setup string is valid
        {
            MoveList.Clear();
            squares     = PGNReader.decode_FEN(fen_string);
            blacktomove = PGNReader.FEN_black_to_move(fen_string);

            bool[] array_castle = new bool[4];
            PGNReader.FEN_castle(fen_string, array_castle);
            white_king_castle  = array_castle[0];
            white_queen_castle = array_castle[1];
            black_king_castle  = array_castle[2];
            black_queen_castle = array_castle[3];
            return(false);
        }