diplomacy-0.2.0.0: Diplomacy board game

Copyright(c) Alexander Vieth 2015
LicenseBSD3
Maintaineraovieth@gmail.com
Stabilityexperimental
Portabilitynon-portable (GHC only)
Safe HaskellNone
LanguageHaskell2010

Diplomacy.OrderResolution

Description

 

Synopsis

Documentation

type Resolved k phase order = (k phase order, Maybe (FailureReason phase order)) Source #

withSomeResolved :: (forall order. Resolved k phase order -> t) -> SomeResolved k phase -> t Source #

typicalChange :: Resolution Typical -> Zone -> Maybe (Aligned Subject) Source #

Changes to a board as the result of a typical phase. Nothing means no change, Just pt means the unit belonging to the great power now lies the input Zone, and used to lie at the given ProvinceTarget pt.

type ConvoyRoute = [(Zone, Maybe (Aligned Subject))] Source #

First component indicates that there is a convoying Fleet at this Zone, second component indicates whether something dislodged it, and if so, who it was.

successfulConvoyRoutes :: ConvoyRoutes -> [ConvoyRoute] Source #

These are always non-paradox routes.