added error handling, random input etc

This commit is contained in:
2026-05-14 19:07:53 -05:00
parent 59477c3ea7
commit 7232c56e4e
3 changed files with 29 additions and 19 deletions

View File

@@ -12,7 +12,7 @@ while True:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((SERVER_IP, PORT))
s.send(f"GET {PREV_ID}".encode())
input = s.recv(1024).decode().strip()
input = s.recv(1024).decode().strip() # Clue is called input in the code
s.close()
if input != "-1": # -1 Means Clue Is Not Yet Sent