Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
20
func
(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
27
func
(state *State) DoMove()
interface
{} {
28
rnd := state.Worker.Rnd
Callers
nothing calls this directly
Calls
1
Energy
Method · 0.65
Tested by
no test coverage detected