home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume4
/
xgo
/
part04
/
dohand.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-04-08
|
956b
|
50 lines
/*
* $Header: dohand.c,v 1.4 88/02/19 13:47:54 hale Exp $
*/
#include "go.h"
DoHand(x,y,c)
int x,y,c;
{
int p;
if (b(x,y)!= 0)
sethand(x,y,(b(x,y)==c+1 ? 0:c+1));
else
putpiece(x,y,c,false);
if (c) SetBlkCur();
else SetWhtCur();
}
sethand(x,y,v)
int x,y,v;
{
if (b(x,y) != v) {
b(x,y)= v;
Plt(&board,x,y);
SEND(MHANDICAP);
SendCoord(x,y);
sendint(v);
}
}
/*
* $Log: dohand.c,v $
* Revision 1.4 88/02/19 13:47:54 hale
* Added io changes for loading games.
* Load game is cleaned up. Variable board
* sizes and formats available in save game
* as well as printed comments.
*
* Revision 1.3 88/02/14 00:21:16 hale
* Added load file option during game to restore game to starting
* state. Also, clear board operation. Restoring game puts current
* player in sync. With the demo mode, this is invaluable.
*
* Revision 1.2 88/02/13 12:45:02 hale
* modified and maximized the handicap given to 9.
*
*/