/GameForProgrammers

Game for programmers in which you collide your programs in battle

Primary LanguageRust

Game for programmers

Game for programmers in which you collide your programs in battle

Start

Download the project, install the Rustup, start the server:

cargo run

Action example JSON

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.