Doc updates
This commit is contained in:
parent
abbe929122
commit
161e0a1ddb
|
@ -4,9 +4,11 @@ In lieu of a systematic overview of the architecture, here are a few scattered n
|
||||||
|
|
||||||
## Provinces and Locations
|
## Provinces and Locations
|
||||||
|
|
||||||
The data model here is based on the data model of [godip](https://github.com/zond/godip). In particular, godip handles the distinction between army and fleet movement by distinguishing between Provicnces and SubProvinces, which 5dplomacy calls Locations. The graph edges that define valid paths are drawn between Locations, but a Province's supply center or occupation by a unit are at the Province level. This makes it easy to represent the different paths available to armies or fleets, since each is essentially moving through a distinct graph from the other, while still interacting at the Province level. It also provides a way to distinguish the connectivity of multiple coasts within a province.
|
The data model here is based on the data model of [godip](https://github.com/zond/godip). In particular, godip handles the distinction between army and fleet movement by distinguishing between Provicnces and SubProvinces, which 5dplomacy calls Locations. The graph edges that define valid paths are drawn between Locations, but occupation by a unit and being a supply center are properties of the Province as a whole. This makes it easy to represent the different paths available to armies or fleets: the land and sea graphs are unconnected and only interact at the Province level. This also provides a way to distinguish the connectivity of multiple coasts within a province.
|
||||||
|
|
||||||
As a consequence of the unconnected land and sea graphs, there is no special significance to unit type in movement, since the inability of fleets to move to land locations is ensured by the lack of edges from land locations to sea locations. Unit type is still relevant to convoy orders and how clients represent the units.
|
As a consequence of the unconnected land and sea graphs, there is no special significance to unit type in movement, since the inability of fleets to move to land locations is ensured by the lack of edges from land locations to sea locations. The primary difference between unit types becomes "can convoy" and "can move by convoy", as well as how the units are represented by clients.
|
||||||
|
|
||||||
|
Internally, land locations are named "land" or "l" and water locations are called "water" or "w". For example, SPA has three locations: SPA/nc, SPA/sc, and SPA/l. This provides a uniform way to handle unit location, because locations in orders without coast specifications can easily be inferred from the map and the unit type. For example, "A Mun - Tyr" can easily be inferred to mean "A Mun/l - Tyr/l" because A Mun is located in the "land" location in Mun and the "land" location in Tyr is the only connected one.
|
||||||
|
|
||||||
## Timeline notation
|
## Timeline notation
|
||||||
|
|
||||||
|
@ -38,3 +40,13 @@ The core adjudication algorithm is intended to be a pure function. That is, adju
|
||||||
|
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
> This is not complete and the adjudicator is still stateful.
|
> This is not complete and the adjudicator is still stateful.
|
||||||
|
|
||||||
|
## Game options
|
||||||
|
|
||||||
|
In order to support different decisions about how adjudication or the rules of multiversal _Diplomacy_ are implemented, the `Options` object is a grab-bag of settings that can be used to tune the adjudicator. The following options are supported:
|
||||||
|
|
||||||
|
- `implicitMainTimeline`: Whether orders to units with no timeline designation should be interpreted as orders for the first timeline. (This may be the default behavior to support adjudication of classical _Diplomacy_ games.)
|
||||||
|
- `enableOpenConvoys`: Whether the open convoy order can be used.
|
||||||
|
- `enableJumpAssists`: Whether the jump assist order can be used.
|
||||||
|
- `victoryCondition`: The victory condition to use for the game. `"elimination"` means a player is eliminated if they are eliminated in a single timeline and the last player standing wins. `"majority"` means a player wins if they control the majority of supply centers across all timelines. `"unique"` means a player wins if they control 18 unique supply centers by name across all timelines.
|
||||||
|
- `adjacency`: The rule to use for determining province adjacency. `"strict"` means provinces are adjacent if they are within one timeline of each other, within one turn of each other, and geographically adjacent. `"anyTimeline"` follows `"strict"` but all timelines are considered adjacent to each other.
|
||||||
|
|
|
@ -43,7 +43,7 @@ The standard _Diplomacy_ rules require that a convoy order include the convoyed
|
||||||
|
|
||||||
### Jump assist
|
### Jump assist
|
||||||
|
|
||||||
Outside of convoys, a unit may only move one province at a time. Multiversal time travel also allows units to move back or forward by one turn and/or across by one timeline. Since time moves forward by one turn per turn, this makes it difficult to go further back into the past. The _jump assist_ order provides a way for units to intervene deeper into the past. A unit may be ordered to give a jump assist to another unit's move. For each successful jump assist given, a unit may move one more turn or timeline. Jump assists do not grant units the ability to move further geographically than they could otherwise.
|
Outside of convoys, a unit may only move one province at a time. Multiversal time travel also allows units to move back or forward by one turn and/or across by one timeline. Since time moves forward by one turn per turn, this makes it difficult to go further back into the past. The _jump assist_ order provides a way for units to intervene deeper into the past. A unit may be ordered to give a jump assist to another unit's move. For each successful jump assist given, a unit may move one more turn or timeline. Jump assists do not grant units the ability to move further geographically than they could otherwise, nor do they provide additional support to an attack.
|
||||||
|
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
> Jump assists are a speculative feature and have not been implemented yet.
|
> Jump assists are a speculative feature and have not been implemented yet.
|
||||||
|
|
Loading…
Reference in New Issue