summaryrefslogtreecommitdiff
path: root/capset.go
diff options
context:
space:
mode:
Diffstat (limited to 'capset.go')
-rw-r--r--capset.go10
1 files 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,