Dead-simple implementation of a generalized NxN Gomoku game in JavaScript. Uses a really simple and a bit naive heuristic and alpha-beta pruning.
Plays a perfect 3x3 game, but I bet you can beat it on a 5x5 board. You can try it at: http://nemanja-stanarevic.github.io/Gomoku/
Submitted this code snipet as part of my Hacker School application.