src/chess/pgn.c

changeset 182
04c65336777f
parent 181
8bda076d0a16
equal deleted inserted replaced
181:8bda076d0a16 182:04c65336777f
145 if (i >= 10) { 145 if (i >= 10) {
146 return(pgn_error_move_syntax); 146 return(pgn_error_move_syntax);
147 } 147 }
148 } while (!isspace(c = *(pgndata++))); 148 } while (!isspace(c = *(pgndata++)));
149 movestr[i] = '\0'; 149 movestr[i] = '\0';
150 if (eval_move(gamestate, movestr, curcol, &move) 150 if (eval_move_strict(gamestate, movestr, curcol, &move)
151 != VALID_MOVE_SYNTAX) { 151 != VALID_MOVE_SYNTAX) {
152 return(pgn_error_move_syntax); 152 return(pgn_error_move_syntax);
153 } 153 }
154 int move_validate_result = validate_move(gamestate, &move); 154 int move_validate_result = validate_move(gamestate, &move);
155 if (move_validate_result != VALID_MOVE_SEMANTICS) { 155 if (move_validate_result != VALID_MOVE_SEMANTICS) {

mercurial