|
|
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: 271 (0x10f)
Types: TextFile
Names: »hasmove.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Othello/hasmove.c«
/*
* hasmove.c
*
* figure out if player has move in board
*/
# include "reversi.h"
hasmove (player, board)
boardT board;
{
register int x,y;
for (x = 1; x <= SIZE; x++)
for (y = 1; y <= SIZE; y++)
if (legal (player, x, y, board))
return 1;
return 0;
}