- Open three terminal instances.
- Run
sbt runon three instances. - Choose
com.example.ServerMain(by typing 2) on the first terminal, thencom.example.ClientMain(by typing 1) on the rest. - On the client instances, use two different names to register.
- The two clients will now show the online member list consisting each other's name, type
-1in one of the terminal instance. - For the other client, type
0to invite the opponent for game. - Switch to the invited client and accept the game request.
- The game starts and you can now making a gesture selection on both client instances.
hockshem/distributed-rock-paper-scissors
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|