tell which color a killed piece had, some fixes in asciiart, added markings on the color-restricted squares

This commit is contained in:
2008-10-10 09:47:55 +00:00
parent d860d50001
commit c0395e561c
4 changed files with 27 additions and 18 deletions

View File

@@ -12,30 +12,30 @@
char asciiart_small_blank_board[] =
"red \n"
" | 0| 1| 2| 3| 4| 5| 6| 7| 8| 9| \n"
"--+--+--+--+--+--+--+--+--+--+--+--\n"
"--r--s--s--+--+--+--+--+--r--r--s--\n"
" A| | | | | | | | | | |A \n"
"--+--+--+--+--+--+--+--+--+--+--+--\n"
"--r--r--s--+--+--+--+--+--r--s--s--\n"
" B| | | | | | | | | | |B \n"
"--+--+--+--+--+--+--+--+--+--+--+--\n"
"--r--r--+--+--+--+--+--+--+--s--s--\n"
" C| | | | | | | | | | |C \n"
"--+--+--+--+--+--+--+--+--+--+--+--\n"
"--r--r--+--+--+--+--+--+--+--s--s--\n"
" D| | | | | | | | | | |D \n"
"--+--+--+--+--+--+--+--+--+--+--+--\n"
"--r--r--+--+--+--+--+--+--+--s--s--\n"
" E| | | | | | | | | | |E \n"
"--+--+--+--+--+--+--+--+--+--+--+--\n"
"--r--r--+--+--+--+--+--+--+--s--s--\n"
" F| | | | | | | | | | |F \n"
"--+--+--+--+--+--+--+--+--+--+--+--\n"
"--r--r--+--+--+--+--+--+--+--s--s--\n"
" G| | | | | | | | | | |G \n"
"--+--+--+--+--+--+--+--+--+--+--+--\n"
"--r--r--s--+--+--+--+--+--r--s--s--\n"
" H| | | | | | | | | | |H \n"
"--+--+--+--+--+--+--+--+--+--+--+--\n"
"--r--s--s--+--+--+--+--+--r--r--s--\n"
" | 0| 1| 2| 3| 4| 5| 6| 7| 8| 9| \n"
" silver\n"
;
char asciiart_small_pieces[] =
" " // NONE
"SSSSSSSSRRRRRRRR"
"SSSSSSSSRRRRRRRR" // PHARAOH
",'`.,'`..\"\"..\"\"." // DJHED
"`/\\'/.,\\\"/\\\"/==\\" // PYRAMID
". . . . = = = = " // OBELISK
@@ -75,13 +75,16 @@ asciiart_small_draw_laserhit(char *buf, game_t *game)
i = asciiart_small_square_index(x, y);
if (x == -1 || x == BOARD_WIDTH) {
i += (x==-1) ? 2 : -1;
buf[i] = '#';
} else {
if (y == -1)
i += SMALL_WIDTH;
else if (y == BOARD_HEIGHT)
i -= SMALL_WIDTH;
buf[i] = buf[i+1] = '#';
if (game->last_hit.piece!=OBELISK2)
buf[i] = '#';
buf[i+1] = '#';
}
}