|
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 - downloadIndex: T d
Length: 956 (0x3bc) Types: TextFile Names: »dohand.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/X/Xgo/dohand.c«
/* * $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. * */