Noughts and Crosses in clojurescript

Noughts and crosses in clojure and clojurescript.

I wanted to write a simple project that took advantage of the ability of clojure and clojurescript to have the same code that can run in the terminal and in the browser.

I used cljx to separate out the main game logic and then referred to that module in both a .clj file for a server impl and .cljs for the client side.

The project can be found here and the clojurescript version of the game can be played below. The terminal version can be run directly from the generated uberjar.

blog comments powered by Disqus