Battleship with Canvas
Here is a simple game of Battleship!
You play against the computer. Select a point at which to drop a bomb by clicking in the computer’s area, which is the upper part of the “ocean” shown belw. The bomb explodes, and any ship that is within a set radius of the point of explosion sustains a hit. Each ship has a hit-capacity; when it takes a number of hits equal to its capacity it is sunk.
The game is a work in progress (see the Github repository). It is implemented in the browser with the Canvas API.