Share this blog!

Simple battleship game using d3


A simple battleship game

This is a simpler version of the popular game battleship, where the positions of the battleships must be determined before the lifelines expire.

Game primitives

Lives :
7
Ships :
4 x 1
4 x 1
3 x 1
2 x 1
2 x 1


The code gist for the above is as follows, which is hopefully quite self explanatory.

Next PostNewer Post Previous PostOlder Post Home

0 comments:

Post a Comment