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