diff --git a/algo.go b/algo.go index 02979bc..f3c23a8 100644 --- a/algo.go +++ b/algo.go @@ -49,6 +49,7 @@ func Count[T comparable](source []T, memory int) float64 { for n := 0; n < round; n++ { if c := coin(); c != previousCoin { delete(pen, t) + break } else { previousCoin = c }