aboutsummaryrefslogtreecommitdiff
path: root/go/game/draft.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/game/draft.go')
-rw-r--r--go/game/draft.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/go/game/draft.go b/go/game/draft.go
index ddf56f77..2b554a82 100644
--- a/go/game/draft.go
+++ b/go/game/draft.go
@@ -40,11 +40,12 @@ func (d *Draft) parseDesc(desc string) {
fmt.Sscanf(desc, "%dx[%d;%d]", &d.packsPerPlayer, &d.cardsPerPack, &d.packSize)
}
+func (d *Draft) PackSize() int {
+ return d.packSize
+}
+
func (d *Draft) Valid() bool {
- if d.packSize < d.cardsPerPack*len(d.players) {
- return false
- }
- return true
+ return !(d.packSize < d.cardsPerPack*len(d.players))
}
// run the draft