src/game.c

changeset 47
d726e4b46c33
parent 46
4dcfb4c58b6d
child 48
0cedda2544da
     1.1 --- a/src/game.c	Thu Apr 17 12:16:14 2014 +0200
     1.2 +++ b/src/game.c	Wed May 28 15:47:57 2014 +0200
     1.3 @@ -167,8 +167,17 @@
     1.4      case NEED_PROMOTION:
     1.5          printw("You need to promote the pawn (append \"=Q\" e.g.)!");
     1.6          break;
     1.7 +    case KING_IN_CHECK:
     1.8 +        printw("Your king is in check!");
     1.9 +        break;
    1.10 +    case PIECE_PINNED:
    1.11 +        printw("This piece is pinned!");
    1.12 +        break;
    1.13 +    case INVALID_MOVE_SYNTAX:
    1.14 +        printw("Can't interpret move - please use algebraic notation.");
    1.15 +        break;
    1.16      default:
    1.17 -        printw("Can't interpret move - please use algebraic notation.");
    1.18 +        printw("Unknown move parser error.");
    1.19      }
    1.20  }
    1.21  

mercurial