-
Notifications
You must be signed in to change notification settings - Fork 1
Client Interface
Jacob Schäfer edited this page Apr 18, 2021
·
2 revisions
The Client Interface abstracts the connection to the websocket and timing API. To determine the next action the client calls the getAction
method. In the get action method you have access to the status of the game and the calculation time. A simple implementation you can find here. At the end of the getAction
method you have to return a action. This action is send to the server. To actually use the client, you have to add it as an option to config.go
. A good starting point is to copy the basicClient.go
file, rename it and change every occurrence of BasicClient
to the new name.