This is a java assignment from: http://www.cis.upenn.edu/~matuszek/cit591-2013/Assignments/10-battleship.html. The battleship game has ten ships(1 battleship (length is 4), 2 cruiser (length is 3), 3 destroyer (length is 2) and 4 submarine (length is 1)).