A simple implementation of the classic game in javascript.