| 277 return 0; |
278 return 0; |
| 278 } |
279 } |
| 279 |
280 |
| 280 static void draw_board(GameState *gamestate, uint8_t perspective) { |
281 static void draw_board(GameState *gamestate, uint8_t perspective) { |
| 281 char fen[90]; |
282 char fen[90]; |
| 282 compute_fen(fen, gamestate); |
283 fen_compute(fen, gamestate); |
| 283 mvaddstr(0, 0, fen); |
284 mvaddstr(0, 0, fen); |
| 284 |
285 |
| 285 for (uint8_t y = 0 ; y < 8 ; y++) { |
286 for (uint8_t y = 0 ; y < 8 ; y++) { |
| 286 for (uint8_t x = 0 ; x < 8 ; x++) { |
287 for (uint8_t x = 0 ; x < 8 ; x++) { |
| 287 uint8_t col = gamestate->board[y][x] & COLOR_MASK; |
288 uint8_t col = gamestate->board[y][x] & COLOR_MASK; |