Exemplo n.º 1
0
func Start() (result *state.State, err error) {
	result = state.New(start.Graph(), &phase{1901, cla.Spring, cla.Movement}, BackupRule)
	if err = result.SetUnits(start.Units()); err != nil {
		return
	}
	result.SetSupplyCenters(start.SupplyCenters())
	return
}
Exemplo n.º 2
0
func Blank(phase dip.Phase) *state.State {
	return state.New(start.Graph(), phase, BackupRule)
}