wm: glendy

ref: 413720140ffd10768af41ea2668daec4b5684353
dir: /srv.h/

View raw version
#define playersock sockfd[turn % 2]
#define INPUTSIZE 512

extern int id;
extern int sockfd[2];

typedef struct
{
	int id;
	int difficulty;
	int state;
	int turn;
	int sockfd[2];
	int grid[SzX][SzY];
	char syncmsg[8];
}Game;

typedef struct
{
	int fd;
	char *nick;
	int game;	
	int side;
	int opts;
	void *thread;
}Client;