Support multiple scoring criteria
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user