Documentation ¶
Index ¶
Constants ¶
View Source
const ( GONSTER1_WIN = "GONSTER1_WIN" GONSTER2_WIN = "GONSTER2_WIN" DRAW = "DRAW" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GonsterGenerator ¶
type ProtoGonsterGen ¶
type ProtoGonsterGen struct{}
type ProtoSimulator ¶
type ProtoSimulator struct { ActionLog [][]SimulatorActionLog BattleResult string }
func (*ProtoSimulator) Start ¶
func (sim *ProtoSimulator) Start(gonster1 Gonster, gonster2 Gonster, rounds int) (ProtoSimulator, error)
type SimulatorActionLog ¶
type SimulatorActionLog struct { RemainingHealth int DiceRoll int AttackProbability int IsAttackSuccess bool DamagePrevented int TotalDamage int }
func SimulateBattle ¶
func SimulateBattle(attacker Gonster, defender Gonster, seed int64) *SimulatorActionLog
Click to show internal directories.
Click to hide internal directories.