ref: b20d1b60914135a6733805663dd821ed28162b8c
parent: fb2dffb51843edd38115ba7ea7823099b0f606e9
author: mkf <mkf@cloud9p.org>
date: Mon May 13 16:39:54 EDT 2024
doc/proto.txt: mention we are using \n
--- a/doc/proto.txt
+++ b/doc/proto.txt
@@ -17,6 +17,9 @@
2024/05/13:
send ERR WAIT if a client sends messages (other than q or EOF)
outside of their turn
+
+2024/05/14:
+ insist upon '\n' on writes, ascii → ASCII
------
notes:
@@ -27,7 +30,10 @@
while also rejecting connections made by "non-clients"
------
-a session begins with a connection to the server,
+client and server notice each other of events (e.g, a move) using messages
+messages ALWAYS end in \n (newline, 0xa in ASCII).
+
+A session begins with a connection to the server,
you will be greeted with:
CONN n
@@ -70,7 +76,7 @@
if client whose turn is to wait, sends a message they will be warned with:
ERR WAIT
-unless the message is q or EOF (0 in ascii), which means the other client is disconnected.
+unless the message is q or EOF (0x0 in ASCII), which means the other client is disconnected.
"trapper" is expected to put a wall, in a empty (no glenda nor wall there) cell,
with the following message: