Create a simulation of the classic game Battleships.
Implementation
- Class Responsbility Collaborators:
Class : Board | Responsibilities | Collaborators |
---|---|---|
place_ships | Ship | |
ship_location | Player? | |
size and boundaries | ||
win/lose? |
Class : Ship | Responsibilities | Collaborators |
---|---|---|
size | Ship | |
direction_facing | Player? | |
fire - hit/miss | ||
sunk? |
- Coded using Ruby and RSpec.
Authors
Project started on 27th July 2015 by Rebecca Appleyard and Leon Wee