|
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 - download
Length: 489 (0x1e9) Types: TextFile Names: »gencor.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Othello/gencor.c«
/* * generate preliminary corner score array */ char board[9]; main () { register int i; for (board[1] = -1; board[1] <= 1; board[1]++) for (board[2] = -1; board[2] <= 1; board[2]++) for (board[3] = -1; board[3] <= 1; board[3]++) for (board[4] = -1; board[4] <= 1; board[4]++) { for (i = 1; i <= 4; i++) switch (board[i]) { case 0: printf (" -"); break; case -1: printf (" O"); break; case 1: printf (" *"); break; } printf ("\n"); } }