Read how to play this game in the Racket documentation. The code is on GitHub.
The Clojure code for the opponent is from a program that
takes control of the mouse to play the game against the
original Scheme client. This code worked without change in
ClojureScript, but its naive algorithm from the Scheme source
has been optimized for speed in the browser.
The development version has a view of the
table state, including the cards of the opponent. This is a
consequence of the whole application living at the
client. However the code is written to support communication
with a server for a remote opponent in the future.
Written by: Gijs Stuurman (@thegeez / GitHub) I'm looking for Clojure work!