diplomacy-0.2.0.0: Diplomacy board game

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

Diplomacy.Zone

Description

 

Synopsis

Documentation

newtype Zone Source #

A ProvinceTarget in which coasts of the same Province are equal. This notion is useful because the rules of Diplomacy state that each Zone is occupied by at most one unit, i.e. there cannot be a unit at two coasts of the same Province.

Constructors

Zone ProvinceTarget 

Instances

Eq Zone Source # 

Methods

(==) :: Zone -> Zone -> Bool #

(/=) :: Zone -> Zone -> Bool #

Ord Zone Source # 

Methods

compare :: Zone -> Zone -> Ordering #

(<) :: Zone -> Zone -> Bool #

(<=) :: Zone -> Zone -> Bool #

(>) :: Zone -> Zone -> Bool #

(>=) :: Zone -> Zone -> Bool #

max :: Zone -> Zone -> Zone #

min :: Zone -> Zone -> Zone #

Show Zone Source # 

Methods

showsPrec :: Int -> Zone -> ShowS #

show :: Zone -> String #

showList :: [Zone] -> ShowS #