simulator

package
v0.0.0-...-11d5444 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attacker

type Attacker struct {
	Weapon int
	Shield int
	Armour int
	ogame.ShipsInfos
}

Attacker ...

type CombatUnit

type CombatUnit struct {
	PackedInfos uint64
}

CombatUnit ...

type Config

type Config struct {
	IsLogging   bool
	Simulations int
	Workers     int
	Attacker    attackerInfo
	Defender    defenderInfo
}

Config ...

type Defender

type Defender struct {
	Metal     int
	Crystal   int
	Deuterium int
	Weapon    int
	Shield    int
	Armour    int
	ogame.ShipsInfos
	ogame.DefensesInfos
}

Defender ...

type SimulatorParams

type SimulatorParams struct {
	Simulations   int
	FleetToDebris float64
}

SimulatorParams ...

type SimulatorResult

type SimulatorResult struct {
	Simulations    int
	AttackerWin    int
	DefenderWin    int
	Draw           int
	Rounds         int
	AttackerLosses price
	DefenderLosses price
	Debris         price
	Recycler       int
	Moonchance     int
	Logs           string
}

SimulatorResult ...

func Simulate

func Simulate(attackerParam Attacker, defenderParam Defender, params SimulatorParams) SimulatorResult

Simulate ...

func (SimulatorResult) String

func (s SimulatorResult) String() string

String ...

Jump to

Keyboard shortcuts

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