Crate diplomacy

Crate diplomacy 

Source
Expand description

An adjudicator for orders in the board game Diplomacy. This adjudicator will be fully compatible with the Diplomacy Adjudicator Test Cases.

Modules§

calendar
Types for representing the passage of in-game time.
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§

Calendar
The calendar dictates the sequence of turns in a game.
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.
Time
Represents a specific point in game time.
Unit
A specific unit that belongs to a nation.
UnitPosition
A unit’s instantaneous position in a region.

Enums§

Phase
The step in a current season. Not all seasons will have all steps.
Season
The current season in the year. Not all game variants use all seasons.
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 L.
ShortName
Format trait for short naming of objects in orders.
UnitPositions
Knowledge of unit positions at a point in time.

Type Aliases§

Month
Identifier of a specific turn in a game.