Searched refs:SUIT_LENGTH (Results 1 – 4 of 4) sorted by relevance
42 #define SUIT_LENGTH 13 macro50 #define GRID_WIDTH (SUIT_LENGTH + 1)68 static char *ranks[SUIT_LENGTH] =138 crank=value % SUIT_LENGTH; in deal_cards()139 csuit=value / SUIT_LENGTH; in deal_cards()149 grid[suit * GRID_WIDTH] = suit * SUIT_LENGTH; in deal_cards()162 addch(ranks[value % SUIT_LENGTH][0] | COLOR_PAIR(COLOR_BLUE)); in printcard()163 addch(ranks[value % SUIT_LENGTH][1] | COLOR_PAIR(COLOR_BLUE)); in printcard()164 addch(suits[value / SUIT_LENGTH]); in printcard()242 if ( ((card % SUIT_LENGTH)==KING) in play_game()
36 #define SUIT_LENGTH 13 macro59 static chtype ranks[SUIT_LENGTH][2] =141 crank=value % SUIT_LENGTH; in deal_cards()142 csuit=value / SUIT_LENGTH; in deal_cards()152 grid[suit * GRID_WIDTH] = suit * SUIT_LENGTH; in deal_cards()165 addch(ranks[value % SUIT_LENGTH][0] | COLOR_PAIR(COLOR_BLUE)); in printcard()166 addch(ranks[value % SUIT_LENGTH][1] | COLOR_PAIR(COLOR_BLUE)); in printcard()167 addch(suits[value / SUIT_LENGTH]); in printcard()243 if ( ((card % SUIT_LENGTH)==KING) in play_game()
55 #define SUIT_LENGTH 13 macro84 static chtype ranks[SUIT_LENGTH][2] =181 crank = value % SUIT_LENGTH; in deal_cards()182 csuit = value / SUIT_LENGTH; in deal_cards()191 grid[suit * GRID_WIDTH] = suit * SUIT_LENGTH; in deal_cards()204 int which = (value / SUIT_LENGTH); in printcard()205 int isuit = (value % SUIT_LENGTH); in printcard()310 if (((card % SUIT_LENGTH) == KING) in play_game()