Peralban / Zappy

second year end project
0 stars 0 forks source link

🐛 AI-Server communication #71

Closed Antoinegtir closed 4 months ago

Antoinegtir commented 4 months ago

:ambulance: Issue of communication between AI & Server

When we connect Python client to an AI server, the AI server will wrongly parse the command receive from the AI.

Python side:

sock.sendall((name + '\n').encode())

Server side issue:

Remove the last 2 characters of the message sent.

To Reproduce Steps to reproduce the behavior:

  1. run ./zappy_server -p 12345 -x 10 -y 10 -n antoine maxime -c 3 -f 10
  2. run ./zappy_ai -p 12345 -n antoine

Screenshots

Capture d’écran 2024-06-12 à 10 40 28