wm: glendy

Download patch

ref: 5e291e44efb02ffb0eefdca7a032c666fb56472d
parent: afd22c2646b2e602a74b74b461f74c01a1afc31c
author: mkf <mkf@cloud9p.org>
date: Mon May 6 10:59:51 EDT 2024

srv: send WAIT when it's other player's turn

it's handy to ensure the client if should they wait for next turn or not.

--- a/srv.c
+++ b/srv.c
@@ -388,6 +388,7 @@
 	s = malloc(1024);
 
 	print(playersock, "TURN\n");
+	print(sockfd[!(turn % 2)], "WAIT\n");
 	
 	memset(s, 0, 1024);
 	while(read(playersock, s+n, 1) == 1 && n < 1024)