(worker *Worker, shape Shape, alpha int)
| 9 | } |
| 10 | |
| 11 | func NewState(worker *Worker, shape Shape, alpha int) *State { |
| 12 | var mutateAlpha bool |
| 13 | if alpha == 0 { |
| 14 | alpha = 128 |
| 15 | mutateAlpha = true |
| 16 | } |
| 17 | return &State{worker, shape, alpha, mutateAlpha, -1} |
| 18 | } |
| 19 | |
| 20 | func (state *State) Energy() float64 { |
| 21 | if state.Score < 0 { |
no outgoing calls
no test coverage detected
searching dependent graphs…