An implementation of this classic game using JavaScript.