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

⟦4f741492e⟧ TextFile

    Length: 255 (0xff)
    Types: TextFile
    Names: »count.c«

Derivation

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

TextFile

/*
 *	count.c
 *
 *	count up the board
 */

# include	"reversi.h"

count (player, board)
boardT	board;
{
	register int	x, y, count;

	count = 0;
	for (x = 1; x <= SIZE; x++)
		for (y = 1; y <= SIZE; y++)
			count += board[x][y];
	return count * player;
}