Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2012-11-28 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 164 This week: 1All time: 285 This week: 22Up
Version License JavaScript version Categories
sea-battle 1.0GNU 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
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:164
This week:1
All time:285
This week:22Up