# HG changeset patch # User Mikael Berthe # Date 1476604116 -7200 # Node ID e284e3ad28001d88d9e81fdabe92fbb14c1e3752 # Parent 110d38ae22cd0d1208bd82ba2c881ccbb61bb504 Export CheckRangeCounts diff -r 110d38ae22cd -r e284e3ad2800 takuzu.go --- a/takuzu.go Sun Oct 16 09:41:57 2016 +0200 +++ b/takuzu.go Sun Oct 16 09:48:36 2016 +0200 @@ -377,7 +377,9 @@ return full, nil } -func checkRangeCounts(cells []Cell) (full bool, n0, n1 int) { +// CheckRangeCounts returns true if all cells of the provided range are defined, +// as well as the number of 0s and the number of 1s in the range. +func CheckRangeCounts(cells []Cell) (full bool, n0, n1 int) { counters := []int{0, 0} full = true