aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/dat.h b/dat.h
index 6d2a6ba..5f503f0 100644
--- a/dat.h
+++ b/dat.h
@@ -10,7 +10,7 @@ enum {
Waiting0 = 0,
Outlaying,
- Waiting1,
+ Waiting,
Playing,
Boardmargin = 50,
@@ -43,7 +43,7 @@ struct Ship
Rectangle bbox;
int orient;
int ncells;
- int *hit; /* |hit| = ncells and hit = {x: 0 ≤ x ≤ 1} */
+ int *hit; /* |hit| = ncells and hit ∈ {0,1} */
int sunk;
};
@@ -58,8 +58,7 @@ struct Player
{
int fd;
int sfd;
- Channel *mc; /* for matching */
- Player *o; /* opponent */
+ int state;
};
struct Playerq