chaos

package
v0.1.93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2021 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Ankara         godip.Nation = "Ankara"
	Belgium        godip.Nation = "Belgium"
	Berlin         godip.Nation = "Berlin"
	Brest          godip.Nation = "Brest"
	Budapest       godip.Nation = "Budapest"
	Bulgaria       godip.Nation = "Bulgaria"
	Constantinople godip.Nation = "Constantinople"
	Denmark        godip.Nation = "Denmark"
	Edinburgh      godip.Nation = "Edinburgh"
	Greece         godip.Nation = "Greece"
	Holland        godip.Nation = "Holland"
	Kiel           godip.Nation = "Kiel"
	Liverpool      godip.Nation = "Liverpool"
	London         godip.Nation = "London"
	Marseilles     godip.Nation = "Marseilles"
	Moscow         godip.Nation = "Moscow"
	Munich         godip.Nation = "Munich"
	Naples         godip.Nation = "Naples"
	Norway         godip.Nation = "Norway"
	Paris          godip.Nation = "Paris"
	Portugal       godip.Nation = "Portugal"
	Rome           godip.Nation = "Rome"
	Rumania        godip.Nation = "Rumania"
	Serbia         godip.Nation = "Serbia"
	Sevastopol     godip.Nation = "Sevastopol"
	Smyrna         godip.Nation = "Smyrna"
	Spain          godip.Nation = "Spain"
	StPetersburg   godip.Nation = "StPetersburg"
	Sweden         godip.Nation = "Sweden"
	Trieste        godip.Nation = "Trieste"
	Tunis          godip.Nation = "Tunis"
	Venice         godip.Nation = "Venice"
	Vienna         godip.Nation = "Vienna"
	Warsaw         godip.Nation = "Warsaw"
)

Variables

View Source
var ChaosVariant = common.Variant{
	Name:       "Chaos",
	Graph:      func() godip.Graph { return Graph() },
	Start:      Start,
	Blank:      Blank,
	Phase:      Phase,
	Parser:     hundred.BuildAnywhereParser,
	Nations:    Nations,
	PhaseTypes: classical.PhaseTypes,
	Seasons:    classical.Seasons,
	UnitTypes:  classical.UnitTypes,
	SoloWinner: common.SCCountWinner(18),
	SVGMap: func() ([]byte, error) {
		return classical.Asset("svg/map.svg")
	},
	SVGVersion: "1",
	SVGUnits: map[godip.UnitType]func() ([]byte, error){
		godip.Army: func() ([]byte, error) {
			return classical.Asset("svg/army.svg")
		},
		godip.Fleet: func() ([]byte, error) {
			return classical.Asset("svg/fleet.svg")
		},
	},
	ProvinceLongNames: classical.ClassicalVariant.ProvinceLongNames,
	CreatedBy:         "Unknown",
	Version:           "",
	Description:       "Standard map. 34 players. 1 unit each. Chaos.",
	SoloSCCount:       func(*state.State) int { return 18 },
	Rules: `First to 18 Supply Centers (SC) is the winner. 
	Units may be built at any owned SC. 
	The game starts with an adjustment phase where it is decided what unit to build. In this phase, all SC without orders build an army (to mitigate absent players).`,
}

Functions

func Blank

func Blank(phase godip.Phase) *state.State

func Graph

func Graph() *graph.Graph

func Phase

func Phase(year int, season godip.Season, typ godip.PhaseType) godip.Phase

func Start

func Start() (*state.State, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL