youngstownredux

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: 14 Imported by: 1

Documentation

Overview

Code generated by go-bindata. (@generated) DO NOT EDIT. sources: svg/youngstownreduxmap.svg

Index

Constants

View Source
const (
	Turkey  godip.Nation = "Turkey"
	Austria godip.Nation = "Austria"
	Britain godip.Nation = "Britain"
	China   godip.Nation = "China"
	Japan   godip.Nation = "Japan"
	Italy   godip.Nation = "Italy"
	Germany godip.Nation = "Germany"
	India   godip.Nation = "India"
	Russia  godip.Nation = "Russia"
	France  godip.Nation = "France"
)

Variables

View Source
var YoungstownReduxVariant = common.Variant{
	Name:   "Youngstown Redux",
	Graph:  func() godip.Graph { return YoungstownReduxGraph() },
	Start:  YoungstownReduxStart,
	Blank:  YoungstownReduxBlank,
	Phase:  classical.NewPhase,
	Parser: classical.Parser,
	ExtraDominanceRules: map[godip.Province]common.DominanceRule{
		"gas": common.DominanceRule{
			Nation: France,
			Dependencies: map[godip.Province]godip.Nation{
				"bre": France,
				"par": France,
				"mar": France,
				"spa": godip.Neutral,
			},
		},
		"bug": common.DominanceRule{
			Nation: France,
			Dependencies: map[godip.Province]godip.Nation{
				"mar": France,
				"par": France,
				"col": Germany,
				"swi": godip.Neutral,
				"bel": godip.Neutral,
			},
		},
		"pic": common.DominanceRule{
			Nation: France,
			Dependencies: map[godip.Province]godip.Nation{
				"par": France,
				"bre": France,
				"bel": godip.Neutral,
			},
		},
		"swa": common.DominanceRule{
			Nation: Germany,
			Dependencies: map[godip.Province]godip.Nation{
				"mun": Germany,
				"col": Germany,
				"swi": godip.Neutral,
			},
		},
		"sil": common.DominanceRule{
			Nation: Germany,
			Dependencies: map[godip.Province]godip.Nation{
				"ber": Germany,
				"war": Russia,
			},
		},
		"pru": common.DominanceRule{
			Nation: Germany,
			Dependencies: map[godip.Province]godip.Nation{
				"ber": Germany,
				"war": Russia,
			},
		},
		"boh": common.DominanceRule{
			Nation: Austria,
			Dependencies: map[godip.Province]godip.Nation{
				"mun": Germany,
				"vnn": Austria,
			},
		},
		"gal": common.DominanceRule{
			Nation: Austria,
			Dependencies: map[godip.Province]godip.Nation{
				"vnn": Austria,
				"war": Russia,
				"rum": godip.Neutral,
			},
		},
		"tyo": common.DominanceRule{
			Nation: Austria,
			Dependencies: map[godip.Province]godip.Nation{
				"mun": Germany,
				"vnn": Austria,
				"tes": Austria,
				"mil": Italy,
			},
		},
		"ven": common.DominanceRule{
			Nation: Italy,
			Dependencies: map[godip.Province]godip.Nation{
				"mil": Italy,
				"rom": Italy,
				"tes": Austria,
			},
		},
		"pie": common.DominanceRule{
			Nation: Italy,
			Dependencies: map[godip.Province]godip.Nation{
				"mil": Italy,
				"rom": Italy,
				"mar": France,
			},
		},
		"ukr": common.DominanceRule{
			Nation: Russia,
			Dependencies: map[godip.Province]godip.Nation{
				"war": Russia,
				"sev": Russia,
				"mos": Russia,
				"rum": godip.Neutral,
			},
		},
		"fin": common.DominanceRule{
			Nation: Russia,
			Dependencies: map[godip.Province]godip.Nation{
				"stp": Russia,
				"sev": Russia,
				"nay": godip.Neutral,
			},
		},
		"awd": common.DominanceRule{
			Nation: Italy,
			Dependencies: map[godip.Province]godip.Nation{
				"mog": Italy,
				"eth": godip.Neutral,
			},
		},
		"cau": common.DominanceRule{
			Nation: Russia,
			Dependencies: map[godip.Province]godip.Nation{
				"sev": Russia,
				"mos": Russia,
				"oms": Russia,
				"per": godip.Neutral,
			},
		},
		"tur": common.DominanceRule{
			Nation: Russia,
			Dependencies: map[godip.Province]godip.Nation{
				"oms": Russia,
				"per": godip.Neutral,
				"afg": godip.Neutral,
				"xin": godip.Neutral,
			},
		},
		"sib": common.DominanceRule{
			Nation: Russia,
			Dependencies: map[godip.Province]godip.Nation{
				"oms": Russia,
				"vla": Russia,
				"man": godip.Neutral,
				"mon": godip.Neutral,
				"xin": godip.Neutral,
			},
		},
		"sak": common.DominanceRule{
			Nation: Russia,
			Dependencies: map[godip.Province]godip.Nation{
				"vla": Russia,
				"kar": godip.Neutral,
			},
		},
		"mac": common.DominanceRule{
			Nation: Turkey,
			Dependencies: map[godip.Province]godip.Nation{
				"con": Turkey,
				"bul": godip.Neutral,
				"ser": godip.Neutral,
				"alb": godip.Neutral,
				"gre": godip.Neutral,
			},
		},
		"arm": common.DominanceRule{
			Nation: Turkey,
			Dependencies: map[godip.Province]godip.Nation{
				"ank": Turkey,
				"bag": Turkey,
				"sev": Russia,
				"per": godip.Neutral,
			},
		},
		"lev": common.DominanceRule{
			Nation: Turkey,
			Dependencies: map[godip.Province]godip.Nation{
				"mec": Turkey,
				"bag": Turkey,
				"egy": godip.Neutral,
			},
		},
		"sid": common.DominanceRule{
			Nation: India,
			Dependencies: map[godip.Province]godip.Nation{
				"bom": India,
				"del": India,
				"afg": godip.Neutral,
				"per": godip.Neutral,
			},
		},
		"kas": common.DominanceRule{
			Nation: India,
			Dependencies: map[godip.Province]godip.Nation{
				"del": India,
				"afg": godip.Neutral,
			},
		},
		"inn": common.DominanceRule{
			Nation: China,
			Dependencies: map[godip.Province]godip.Nation{
				"pek": China,
				"mon": godip.Neutral,
				"xin": godip.Neutral,
				"man": godip.Neutral,
			},
		},
		"heb": common.DominanceRule{
			Nation: China,
			Dependencies: map[godip.Province]godip.Nation{
				"pek": China,
				"tsi": Germany,
				"wuh": China,
				"sha": China,
			},
		},
		"qin": common.DominanceRule{
			Nation: China,
			Dependencies: map[godip.Province]godip.Nation{
				"pek": China,
				"wuh": China,
				"xin": godip.Neutral,
			},
		},
		"yun": common.DominanceRule{
			Nation: China,
			Dependencies: map[godip.Province]godip.Nation{
				"gua": China,
				"wuh": China,
				"vit": godip.Neutral,
				"bum": godip.Neutral,
			},
		},
	},
	Nations:           Nations,
	PhaseTypes:        classical.PhaseTypes,
	Seasons:           classical.Seasons,
	UnitTypes:         classical.UnitTypes,
	SoloWinner:        common.SCCountWinner(28),
	ProvinceLongNames: provinceLongNames,
	SVGMap: func() ([]byte, error) {
		return Asset("svg/youngstownreduxmap.svg")
	},
	SVGVersion: "4",
	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")
		},
	},
	CreatedBy:   "airborne",
	Version:     "I",
	Description: "China, India and Japan join the standard seven nations.",
	SoloSCCount: func(*state.State) int { return 28 },
	Rules: `First to 28 Supply Centers (SC) wins. If two nations have 28 SCs, the one with most wins. If drawn, the game continues an extra year.
Fleets can move around the world via box sea regions, which are connected to the other ones in the same row and column. 
Six provinces have dual coasts: Spain, St. Petersburg, Levant, Arabia, Hebei, and Thailand. 
The Arctic region is impassable (Omsk & Siberia are land regions).`,
}

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

func YoungstownReduxBlank

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

func YoungstownReduxGraph

func YoungstownReduxGraph() *graph.Graph

func YoungstownReduxStart

func YoungstownReduxStart() (result *state.State, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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