ref: 640c1029f04440af1761d47dd35862e75829733f
parent: 0d7febed1566610507ef77d47794aefcd8e8ba21
author: mkf <mkf@cloud9p.org>
date: Tue May 14 19:53:04 EDT 2024
srv.h: update
--- a/srv.h
+++ b/srv.h
@@ -1,16 +1,13 @@
-typedef struct
-{
- int fd;
- char[16] cookie;
+extern int id;
+extern int sockfd[2];
-}Client;
-
typedef struct
{
int id;
- List msgs;
+ int difficulty;
int state;
int turn;
- Client player[2];
+ int sockfd[2];
int grid[SzX][SzY];
+ char syncmsg[8];
}Game;