Skip to content

v0.9.9

Choose a tag to compare

@maxblan maxblan released this 14 Nov 13:11
· 201 commits to master since this release

What's Changed

  • implement the survive feature

It is now possible to let the client run when the game is over and the server closes its connection. This is very practical if the client is to play several games in succession. The test server is recommended for this, as it works without a UI and you do not have to start the game manually each time.

If this feature wants to be used, then this method must be implemented from IClientHandler and reconnect to the server and join a game.

def while_disconnected(self, player_client):
    player_client.connect_to_server()
    player_client.join_game()

It should also be noted that the starter requires the argument survive=True so that the client is not terminated when the servers closes the connection.

Starter(logic=Logic(), survive=True)

Full Changelog: v0.9.8...v0.9.9