From c2782417e222be0e61fd910bae5c3d127bdda90b Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 24 Aug 2023 14:04:11 +0000 Subject: fixed the match process cleanup procedure. --- dat.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'dat.h') 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 -- cgit v1.2.3