[−][src]Crate diplomacy
An adjudicator for orders in the board game Diplomacy. This adjudicator will be fully compatible with the Diplomacy Adjudicator Test Cases.
Modules
geo | This module contains the types needed to build a map of the world in Diplomacy. Terminology in this module comes from the DATC. |
judge | Contains the logic needed to adjudicate a turn. |
order | The model for an order issued to a unit. |
parser | Contains error types and trait implementations for parsing diplomacy orders. |
Structs
Nation | An actor in the game. Nations can own units and issue orders. |
Order | An order is issued by a nation and gives a command to a unit in a region. |
Unit | A specific unit that belongs to a nation. |
UnitPosition | A unit's instantaneous position in a region. |
Enums
UnitType | The type of a military unit. Armies are convoyable land-based units; fleets are sea-going units which are able to convoy armies. |
Traits
Command | A command issued to a unit or location which uses a single concrete location type of |
ShortName | Format trait for short naming of objects in orders. |
UnitPositions | Knowledge of unit positions at a point in time. |