variants
Description
Variants

This lists the supported variants on the server. Graph logically represents the map, while the rest of the fields should be fairly self explanatory.

Variant services

Variants can provide clients with a start state as a JSON blob via the `start-state` link.

Note: The start state is contained in the `Properties` field of the object presented at `start-state`.

To get the resolved result of a state plus some orders, the client `POST`s the same state plus the orders as a map `{ NATION: { PROVINCE: []WORD } }`, e.g. `{ 'England': { 'lon': ['Move', 'nth'] } }`.

Unfortunately the auto generated HTML interface isn't powerful enough to create an easy to use form for this, so interested parties might have to use `curl` or similar tools to experiment.

Phase types

Note that the phase types used for the variant service (`/Variants` and `/Variant/...`) is not the same as the phase type presented in the regular game service (`/Games/...` and `/Game/...`).

The variant service targets independent dippy service developers, not players or front end developers, and does not provide anything other than simple start-state and resolve-state functionality.

Properties