Export CheckRangeCounts
authorMikael Berthe <mikael@lilotux.net>
Sun, 16 Oct 2016 09:48:36 +0200
changeset 7 e284e3ad2800
parent 6 110d38ae22cd
child 8 955d3add9426
Export CheckRangeCounts
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