Support multiple scoring criteria

This commit is contained in:
Ian Gulliver
2021-11-24 19:52:22 -08:00
parent 7c0a1e28e6
commit 1c4cf25e34
5 changed files with 176 additions and 79 deletions

View File

@@ -12,15 +12,3 @@ func (s *Sample) SetInputs(state *vm.State) {
state.GlobalMemory().WriteUnsigned(uint64(i), val)
}
}
func (s *Sample) matchingOuts(state *vm.State) uint64 {
ret := uint64(0)
for i, val := range s.Out {
if state.GlobalMemory().MustReadUnsigned(uint64(i)) == val {
ret++
}
}
return ret
}