Expand description
DATC-compliant* diplomacy adjucator.
Use adjudicate
to adjudicate a movement phase, and utils::apply_adjudication
to update the map.
This crate does not support build phases, as those are fairly easy to implement on your own, and
build phases may differ for different variants.
Modules§
- base
- Orders present in the default version of the game. These implementations follow Kruijswijk’s specifications in his excellent article on adjudication.
- core
- Provides the
Core
order type, as found in some variants. - utils
- Auxiliary functionality not related to adjudicating a movement phase.
Structs§
- Map
- A variant map.
- MapState
- Stores the units present on a diplomacy board.
- Province
- Province metadata stored in a
Map
.
Enums§
Traits§
Functions§
- adjudicate
- Adjudicate a movement phase.
Type Aliases§
- ArmyLoc
- An army location.
- Fleet
Loc - A fleet location. The first element of the tuple is the province, the second is the coast.
- Orders
- Map of orders. Each province occupied by a unit have an associated order.
- Province
Abbr - Abbreviation for a province (e.g. NTH, Lvn).