Online multiplayer connetion board game
- ✅ Pair programming
- ✅ TDD
- ✅ Event Driven Architecture (EDA)
- ✅ Client server publish/subscribe messaging pattern (by using MQTT 3.1.1 protocol)
https://en.wikipedia.org/wiki/Connect_Four
0️⃣ If you dont have installed MQTT on your PC run this command:
pip install paho-mqtt
or downlad it by using this link: https://mosquitto.org/download/
1️⃣ Download at least bin
subdirectories, both from Server
and Client
directory
2️⃣ One of the players need to run a server:
- open directory
Server/bin
- open one of the directories (
Linux
/Windows
), according to your Operating System:
- Linux
Open it by console with command:
java -jar Server.jar
- Windows
Windows CMD not support ansi colors in console, so to run game properly, you need to do steps from a) OR b):
a) Open it using bash (e.g.Git Bash
) identically as in Linux
b) Open it usingCMD
:
- Open one of directories (
x64
orx86
), according to your system version - run
RunGame.bat
script (just clik on it)
- Open one of directories (
3️⃣ Both players need to run a client application
- open
Client/bin
- Repeat steps similiary as for
Server
application (for Linux with command):
java -jar Client.jar
4️⃣ Enter server ID (from Server console) into both clients application
5️⃣ Enjoy the game!
- If you don't see directories
x64
orx86
insidebin/Windows
after downloading it, or you have some other problems, try to disableWindows Defender
, download directory again and repeat steps
game logic | game logic |
UI (CLI) | |
EDA with MQTT |
Feel free to contact with us. And hope you enjoy the game 😎