src/game.c

changeset 54
eef745ba3774
parent 53
78b580bfde33
child 55
54ea19938d57
     1.1 --- a/src/game.c	Wed Aug 26 12:59:30 2015 +0200
     1.2 +++ b/src/game.c	Wed Aug 26 14:46:42 2015 +0200
     1.3 @@ -72,6 +72,10 @@
     1.4  }
     1.5  
     1.6  static void draw_board(GameState *gamestate, uint8_t perspective) {
     1.7 +    char fen[90];
     1.8 +    compute_fen(fen, gamestate);
     1.9 +    mvaddstr(0, 0, fen);
    1.10 +    
    1.11      for (uint8_t y = 0 ; y < 8 ; y++) {
    1.12          for (uint8_t x = 0 ; x < 8 ; x++) {
    1.13              uint8_t col = gamestate->board[y][x] & COLOR_MASK;
    1.14 @@ -109,7 +113,7 @@
    1.15      
    1.16      /* move log */
    1.17      // TODO: introduce window to avoid bugs with a long move log
    1.18 -    uint8_t logy = 0;
    1.19 +    uint8_t logy = 1;
    1.20      const uint8_t logx = boardx + 30;
    1.21      int logi = 1;
    1.22      MoveList *logelem = gamestate->movelist;

mercurial