Algorithms with visual demos implemented in JavaScript.
Draws randomly positioned squares in a container and then draws their intersections.
JS Fiddle demo here: http://jsfiddle.net/epihel/b6rtycto/
Traverses a matrix from the outside to the center in a spiral. Works with any number of rows and columns.
JS Fiddle demo here: http://jsfiddle.net/epihel/v4txae94/
Generates a Tic Tac Toe game, tracks the state of the board, and determines when a player has won.
JS Fiddle demo here: http://jsfiddle.net/epihel/ghczy1wk/