|
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 g
Length: 679 (0x2a7) Types: TextFile Names: »genedge.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Othello/genedge.c«
/* * generate preliminary edge 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 (board[5] = -1; board[5] <= 1; board[5]++) for (board[6] = -1; board[6] <= 1; board[6]++) for (board[7] = -1; board[7] <= 1; board[7]++) for (board[8] = -1; board[8] <= 1; board[8]++) { for (i = 1; i <= 8; i++) switch (board[i]) { case 0: printf (" -"); break; case -1: printf (" O"); break; case 1: printf (" *"); break; } printf ("\n"); } }