src/game.c

changeset 47
d726e4b46c33
parent 46
4dcfb4c58b6d
child 48
0cedda2544da
equal deleted inserted replaced
46:4dcfb4c58b6d 47:d726e4b46c33
165 printw("Cannot find the piece that shall be moved."); 165 printw("Cannot find the piece that shall be moved.");
166 break; 166 break;
167 case NEED_PROMOTION: 167 case NEED_PROMOTION:
168 printw("You need to promote the pawn (append \"=Q\" e.g.)!"); 168 printw("You need to promote the pawn (append \"=Q\" e.g.)!");
169 break; 169 break;
170 case KING_IN_CHECK:
171 printw("Your king is in check!");
172 break;
173 case PIECE_PINNED:
174 printw("This piece is pinned!");
175 break;
176 case INVALID_MOVE_SYNTAX:
177 printw("Can't interpret move - please use algebraic notation.");
178 break;
170 default: 179 default:
171 printw("Can't interpret move - please use algebraic notation."); 180 printw("Unknown move parser error.");
172 } 181 }
173 } 182 }
174 183
175 #define MOVESTR_BUFLEN 8 184 #define MOVESTR_BUFLEN 8
176 static int domove_singlemachine(GameState *gamestate, GameInfo *gameinfo) { 185 static int domove_singlemachine(GameState *gamestate, GameInfo *gameinfo) {

mercurial