Set, the card game: Difference between revisions

Added Acornsoft Lisp
(username removed)
(Dummy edit)
imported>Rowsety Moid
(Added Acornsoft Lisp)
Line 32:
 
::* The Wikipedia article, [[wp:Set (card game)|Set (card game)]]
 
=={{header|Acornsoft Lisp}}==
See [[Set puzzle#Acornsoft_Lisp]]
 
The [[Set puzzle]] task is so similar that the same solution can be used. Just redefine <code>play</code> from
 
<syntaxhighlight lang="lisp">
(defun play ((n-cards . 9))
(find-enough-sets n-cards (quotient n-cards 2)))
</syntaxhighlight>
 
to
 
<syntaxhighlight lang="lisp">
(defun play ((n-cards . 9))
(find-enough-sets n-cards 0))
</syntaxhighlight>
 
=={{header|C++}}==
Anonymous user