Learning Clojure and ClojureScript by playing a card game
summary
A playable Gin Rummy system built in stages: a desktop bot using java.awt.Robot that screenshots the table, detects card edges and identifies cards by sampling a few top‑left pixels; a Clojure core that models cards as maps (not objects) and reuses the Scheme opponent logic; a ClojureScript browser UI with drag‑and‑drop wired to DataScript and Google Closure tools; a networked version backed by Datomic time T snapshots for reconnects. A neural‑network self‑play experiment runs but stalls on local maxima due to random initial evaluations.
AI-written summary · about
chapters (12)
- 0:00Start
- 1:142007
- 4:53Building a Robot
- 5:45Robot demo
- 10:58Gin Rummy Clojure Script
- 12:57Ace of hearts
- 14:58Ace of clubs
- 18:03Play over the network
- 20:09Architecture
- 22:34The power of T
- 28:27Learning from self-play
- 30:55Lessons Learned
related talks
36mPlaying Go with Clojure
38mUSE lisp WITH game - Making an Adventure Game with Clojure
38mFun with Functional Programming in Clojure
40mFun with Functional Programming in Clojure
31mLightning Talks
34mPanel with Paula Gearon and Eric Normand
31mScientific Computing with Clojure
27mReal World AI Integration
