Skip to content

Develop another client

Simon Forsberg edited this page Jun 21, 2015 · 2 revisions

Develop another client

If you want to help develop another client, download the latest server release. Start the server using java -jar cardshifter-server-<version>.jar.

All messages sent between client and server are using JSON format (In the future, other formats will be supported as well). The available messages can be found here.

For example, to send a LoginMessage pass the following JSON: { "command": "login", "username": "example" }.

To send a request for starting a game, use StartGameRequest which can be sent as JSON like this: { "command": "startgame", "opponent": 1, "gameType": "Cyborg-Chronicles" }