This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns crepl.tic-tac-toe | |
(:require [reagent.core :as r] | |
crepl.atom-sync)) | |
;; use this instead of reagent.core/atom to keep the state in sync | |
(def data (crepl.atom-sync/atom-sync {:turn :X})) | |
(def win-lines (-> #{} | |
(into (for [i (range 3)] | |
(for [j (range 3)] |