MCPcopy
hub / github.com/fogleman/primitive / Energy

Method Energy

primitive/state.go:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func (state *State) Energy() float64 {
21 if state.Score < 0 {
22 state.Score = state.Worker.Energy(state.Shape, state.Alpha)
23 }
24 return state.Score
25}
26
27func (state *State) DoMove() interface{} {
28 rnd := state.Worker.Rnd

Callers

nothing calls this directly

Calls 1

EnergyMethod · 0.65

Tested by

no test coverage detected