I wish to implement a simple multiplayer Hangman game with the rule slightly bended.
Rule: All the players have to guess the alphabets in the word at the same time. Whoever player guesses a correct alphabet gets a point, and the player who puts the ending alphabet gets bonus points. This will be about speed. The faster correct guess gets you ahead of others.
I intend to have a Qt/QML based GUI and the programming language will be C++. Platform will be Linux.
I am thinking I'll need:
- One thread for handling user typing.
- Second thread for parallel display of what other players are typing.
- Third thread for parallel display of scores of every player on every player's screen.
Do I need these 3 threads or I am barking the wrong tree?
I posted this question on another site and got following reply:
What is an event loop? do I need that?No you don't need threads for such lightweight tasks. You also don't need Boost for a typical Qt application. Qt is a complete (some would say bloated) framework, and Qt::Application has an event loop, so make use of it.
Bookmarks