https://github.com/parmsang/battleships2
https://github.com/parmsang/battleships2
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/parmsang/battleships2
- Owner: parmsang
- Created: 2015-07-29T09:03:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-31T17:59:38.000Z (almost 11 years ago)
- Last Synced: 2025-06-01T15:28:13.261Z (about 1 year ago)
- Language: Ruby
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This program is one which simulates the game play in the boardgame Battleships.
Battleships (or Battleship) is a game where each player has a board upon which they can place a number of ships. The boards are 10x10 two dimensional grid.
Object Messages
Game won?, lost?, hits, misses
Player
Ship size?, direction?, sunk? hit?
Board place_ship, constrain_ship, overlap?,fire
Opponent
OpponentShip sunk?, size?, direction?, hit?
OpponentBoard place_ship, constrain_ship,overlap?, fire