From 459fac21019be383c7892228959fc234d29b2dc3 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Thu, 3 Jul 2014 16:34:22 -0700 Subject: Add docs for Capset --- capset.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/capset.go b/capset.go index a7e6171..421f7f1 100644 --- a/capset.go +++ b/capset.go @@ -182,10 +182,14 @@ func (d *Deck) FindCard(cardStr string) (card Card, ok bool) { } type Capset struct { - d *Deck + // d is the search space to find capsets. + d *Deck + // tableau is the current attempt to find a capset. tableau []Card - maxim int - hasSet bool + // maxim is the minimum size for found capsets. + maxim int + // hasSet is true if the current tableau contains at least one set. + hasSet bool } // NewCapset makes an initialized Capset for the provided deck. If maxim is -1, -- cgit v1.2.3-54-g00ecf