home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume15
/
reversi2
/
part02
/
count.c
< prev
next >
Wrap
Text File
|
1993-01-27
|
255b
|
20 lines
/*
* 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;
}