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

⟦969dd59c1⟧ TextFile

    Length: 271 (0x10f)
    Types: TextFile
    Names: »hasmove.c«

Derivation

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

TextFile

/*
 *	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;
}