Download the project, install the Rustup, start the server:
cargo run
Communication with the server takes place using JSON, you connect to the server using a websocket and as soon as the server signals the start of the game, you send messages in the form:
{
"actions": [
{
"action": "Move",
"direction": "Right",
"range": 2
},
{
"action": "Reload"
}
]
}
After receiving a message from the client (or without waiting for it if it timed out), the server will update the game state and return the current game state. All repeats.