DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦887106f5e⟧ TextFile

    Length: 489 (0x1e9)
    Types: TextFile
    Names: »gencor.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Othello/gencor.c« 

TextFile

/*
 *	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");
	}
}