NM-TAFE / battleships-2021

MIT License
3 stars 15 forks source link

Add chat functionality #5

Open shlecturer opened 3 years ago

shlecturer commented 3 years ago

While two people are playing the game, it would be nice if they could chat to each other.

The system is asynchronous. The protocol can be updated so that both players could potentially send a "chat" message at any given moment. The only reason it would be limited to when a player is "waiting" is because they might otherwise be asked to enter a move, during which time they obviously couldn't enter anything else. :) In a GUI environment, though, this would not be an issue.

This functionality requires updates to both the client and the server.