mattteochen / IS23-AM10

2023 software engineering project for Polimi
MIT License
1 stars 2 forks source link

[13] Implement CLI logic #121

Closed frbuccoliero closed 1 year ago

frbuccoliero commented 1 year ago

While writing CLI logic make particular attention to the fact that there's the chat -> you need to handle the CLI I/O asynchronously (e.g. you might receive a chat message, and therefore display it to the user, while you're asked to make a move; vice-versa, when player is NOT playing, should still be able to send messages.)

mattteochen commented 1 year ago

We need something to isolate the chat UI in CLI mode imo otherwise it will be very messy. Something like a separate terminal window.

mattteochen commented 1 year ago

We need something to isolate the chat UI in CLI mode imo otherwise it will be very messy. Something like a separate terminal window.

But I am not confident that a single executable can be spawned in two terminal processes.

frbuccoliero commented 1 year ago

Something like a separate terminal window.

I don't think this is viable. My take would be:

Msg could follow some fashion like:

And that should be it.