Sea Battle: Show sea battle game placing ships on the board

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 181 All time: 289 This week: 3Up
Version License JavaScript version Categories
sea-battle 1.0.1GNU General Publi...1.0Games
Description Author

This object can show sea battle game placing ships on the board.

It can display a board with a given width and height for showing a sea battle game.

The object can place ships for the two players in random places, assuring that each ship does not overlap with already placed ships.

The number of each type of ships to place and the colors of the sea are configurable parameters.

Picture of Mark Rolich
  Performance   Level  
Name: Mark Rolich <contact>
Classes: 13 packages by
Country: Armenia Armenia
Age: 42
All time rank: 111 in Armenia Armenia
Week rank: 6 Up1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 6x

Winner: 1x

Details
This Javascript package randomly arranges ships for sea battle game. Supports: - adjustable number of each type of ship - adjustable dimensions of board - if number of ships is too high or dimensions of board are too small exception will be thrown - color scheme for sea, ships and superstructures - random orientation of the ships (vertical/horizontal) Copyright (C) 2012 Mark Rolich
  Files folder image Files  
File Role Description
Accessible without login Plain text file demo.css Data Demo
Accessible without login Plain text file demo.html Example Demo styles
Accessible without login Plain text file license.txt Lic. LICENSE
Accessible without login Plain text file README Data README
Plain text file ShipArranger.js Class Main function

 Version Control Unique User Downloads Download Rankings  
 100%
Total:181
This week:0
All time:289
This week:3Up