Episode 005: Tracking, for the Win

Nate tries to figure out who actually won this never-ending game of tic-tac-toe.

Clojure in this episode:

Code sample from this episode:

(ns app.game.tracker)

(defn update
  [tracking [player row column]]
  (cond-> tracking
    true (record row column player)
    (diag? row column) (record-diag player)
    (rdiag? row column) (record-rdiag player)))
Play Episode