From: Carl Worth Date: Fri, 18 Jan 2008 08:20:49 +0000 (-0800) Subject: Mark emptyslots explicitly in the show output X-Git-Url: https://git.cworth.org/git?p=loudgame;a=commitdiff_plain;h=a5d50bb62477a642d5415ecfc075da339e4fa84f;ds=sidebyside Mark emptyslots explicitly in the show output --- diff --git a/lg-set.c b/lg-set.c index c5ebbfb..94bebc3 100644 --- a/lg-set.c +++ b/lg-set.c @@ -255,12 +255,18 @@ set_game_handle_show (set_game_t *game, int i, j; s = board_str; - for (i = 0; i < board->num_slots; i++) + for (i = 0; i < board->num_slots; i++) { if (board->slots[i].has_card) { for (j = 0; j < NUM_ATTRIBUTES; j++) *s++ = '0' + board->slots[i].card.attributes[j]; *s++ = ' '; + } else { + *s++ = '-'; + *s++ = '-'; + *s++ = '-'; + *s++ = ' '; } + } *s = '\0'; loudgame_send (&game->lg, peer, board_str);