Open jordansoans2002 opened 2 years ago
send all server setting to initialize client settings add multithreading
multi-threading is added. the incoming message must come before the umpire puts his hand up otherwise the last input will be taken.
Every time the game is the umpire is clicked or value of game loop is changed (or whenever startAnimation() is called) send a message to the other player. To start game send a message to other computer and receive an instant acknowledgement. Start game when acknowledgement is received