aboutsummaryrefslogtreecommitdiff
path: root/src/model.lisp
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2025-02-15 15:04:59 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2025-02-15 15:04:59 +0000
commit2323b5e0ed564c215741c869da4b487d56b76502 (patch)
treeb7ee4b0e3cd4bc61888dd856493c1a3fb75274f7 /src/model.lisp
parent395cd9357e2dbcf3bb0ffcaa45c79492ed4c3317 (diff)
downloadcantedraw-2323b5e0ed564c215741c869da4b487d56b76502.tar.gz
cantedraw-2323b5e0ed564c215741c869da4b487d56b76502.tar.bz2
cantedraw-2323b5e0ed564c215741c869da4b487d56b76502.zip
Small changes
Diffstat (limited to 'src/model.lisp')
-rw-r--r--src/model.lisp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model.lisp b/src/model.lisp
index 7cb1792..ffa1a4a 100644
--- a/src/model.lisp
+++ b/src/model.lisp
@@ -30,11 +30,11 @@
(deftype int-card () `(integer 0 51))
+(deftype cardset () `(and list (satisfies cardsetp)))
+
(fn cardsetp (lst) (-> (list) boolean)
(every #'(lambda (x) (typep x 'card)) lst))
-(deftype cardset () `(and list (satisfies cardsetp)))
-
(fn int->suit (n) (-> (int-card) suit)
(case (floor n 13)
(0 :Diamonds)