Skip to content

A functional programming implementation of Yahtzee, in ClojureScript

Notifications You must be signed in to change notification settings

cjohansen/yahtzee-cljs

Repository files navigation

Yahtzee!

An implementation of Yahtzee in ClojureScript. The goal of this code-base is mainly educational. I'm hoping to use it as an introduction to (dynamic) functional programming, and how to create a functional design, as well as how to decouple as much logic from rendering as possible. The goal is to write an article or two demonstrating how this code could have been written in the first place.

Run locally

Playing Yahtzee is fun. You'll need the Clojure binary:

brew install clojure

And then:

clojure -A:dev -A:repl

Now you should be able to play Yahtzee on http:https://localhost:9500/.

Run tests

Tests are available over the development server at http:https://localhost:9500/figwheel-extra-main/tests. Optionally, you can run:

clojure -A:test --watch

About

A functional programming implementation of Yahtzee, in ClojureScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages