An implementation of a battleship like game for the HTML5 platform