|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T s
Length: 1939 (0x793)
Types: TextFile
Names: »screen.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Yahtzee/screen.c«
#include "types.h"
extern Game player[];
char *scrn[] = {
/* 0 */ " Player | | | | |",
/* 1 */ " Aces | | | | |",
/* 2 */ " Twos | | | | |",
/* 3 */ " Threes | | | | |",
/* 4 */ " Fours | | | | |",
/* 5 */ " Fives | | | | |",
/* 6 */ " Sixes | | | | |",
/* 7 */ " Total | | | | |",
/* 8 */ " Bonus for 63 | | | | |",
/* 9 */ " ---------------|-------|-------|--------|-------|",
/* 10 */ " 3 of a kind | | | | |",
/* 11 */ " 4 of a kind | | | | |",
/* 12 */ " Full house | | | | |",
/* 13 */ " Small straight | | | | |",
/* 14 */ " Large straight | | | | |",
/* 15 */ " Yahtzee | | | | |",
/* 16 */ " Chance | | | | |",
/* 17 */ " Yahtzee Bonus | | | | |",
/* 18 */ " ---------------|-------|-------|--------|-------|",
/* 19 */ " Total top | | | | |",
/* 20 */ " Total bottom | | | | |",
/* 21 */ " ---------------|-------|-------|--------|-------|",
/* 22 */ " Grand Total | | | | |",
NULL
};
drawscreen(n)
int n;
{
int i;
clear();
for(i=0; i<10; i++) mvaddstr(i,0,scrn[i]);
refresh();
for(i=10; scrn[i]; i++) mvaddstr(i,0,scrn[i]);
refresh();
for(i=0; i<n; i++) mvaddstr(0, FC+(i*COLW), player[i].name);
refresh();
}
setname(old,new)
int old,new;
{
mvaddch(0, FC-1+(old*COLW), ' ');
mvaddch(0, FC-1+(new*COLW), '*');
refresh();
}