|
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: 255 (0xff) Types: TextFile Names: »count.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Othello/count.c«
/* * 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; }