Mastermind

The classic code-breaking game, as a try-out of React, Redux and Immutable.js: immutable state, with the view as a function of that state. Every move is a timestamped state change, which makes implementing the replay of a finished game a breeze.

React, Redux, Immutable.js, ES6 · Source

Tetris

Front ends written in FP style, taken one step further, with ClojureScript and core.async. A nice separation of concerns: clock ticks and key presses go on a channel and are all handled in one place.

ClojureScript, core.async, Canvas · Source

Knight Jumps

A play-around with CoffeeScript and HTML5 Canvas, showing a knight’s moves on a chess board. A self-imposed restriction: everything is drawn by hand, without using any drawing library.

CoffeeScript, Canvas · Source

Starting Hands

A small drill for memorising Texas Hold’em starting hand categories, from Lee Jones’s Winning Low Limit Hold’em.

JavaScript, jQuery, Lodash, Bootstrap · Source