Upon joining the game, players enter a lobby where they are required to 'ready up' before the game begins. Once the game begins, players compete to collect the most coins until a target number of coins is reached (default is 10). Coins spawn randomly and the first player to reach the target number of coins collected wins. Upon a player winning, all players will see a ‘win screen’ showing the ID of the player who won, and the option to either restart or exit the game.
-
Run the server.py file
-
Get the IP address of the computer that the server is being run on by putting the following into your terminal:
Windows: ipconfig | findstr /R "IPv4"
Linux: ip addr show eth0 and look for the "inet" line.
MacOS: ipconfig getifaddr en0
-
Then run the client.py and put that as the ip address.
-
Choose a name and begin.