added error handling, random input etc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user