Table of Contents - battleships-0.1.2 Documentation
Classes and Modules
- Battleships
- Battleships::Board
- Battleships::Cell
- Battleships::CoordinateHandler
- Battleships::Game
- Battleships::Player
- Battleships::Ship
- Object
Methods
- ::aircraft_carrier — Battleships::Ship
- ::battleship — Battleships::Ship
- ::cruiser — Battleships::Ship
- ::destroyer — Battleships::Ship
- ::new — Battleships::Board
- ::new — Battleships::Game
- ::new — Battleships::Ship
- ::submarine — Battleships::Ship
- #[] — Battleships::Board
- #all_ship_coords — Battleships::Board
- #all_ships_sunk? — Battleships::Board
- #all_ships_sunk? — Battleships::Player
- #coordinate — Battleships::CoordinateHandler
- #create_print — Battleships::Game
- #each — Battleships::CoordinateHandler
- #each_row — Battleships::CoordinateHandler
- #empty? — Battleships::Cell
- #from — Battleships::CoordinateHandler
- #has_winner? — Battleships::Game
- #height — Battleships::Board
- #hit — Battleships::Ship
- #horizontal_coords_for — Battleships::CoordinateHandler
- #initialize_grid — Battleships::Board
- #initialize_player — Battleships::Game
- #inspect — Battleships::Board
- #opponent_board_view — Battleships::Game
- #own_board_view — Battleships::Game
- #place_ship — Battleships::Board
- #place_ship — Battleships::Player
- #players — Battleships::Game
- #receive_shot — Battleships::Board
- #receive_shot — Battleships::Cell
- #receive_shot — Battleships::Player
- #ships — Battleships::Board
- #shoot — Battleships::Player
- #shot? — Battleships::Cell
- #status — Battleships::Cell
- #sunk? — Battleships::Ship
- #valid? — Battleships::CoordinateHandler
- #validate — Battleships::CoordinateHandler
- #validate_all_coords_available — Battleships::Board
- #validate_all_ship_coords — Battleships::Board
- #validate_coord_not_shot — Battleships::Board
- #vertical_coords_for — Battleships::CoordinateHandler
- #winner — Battleships::Game
- #winner? — Battleships::Player
- #x_coords — Battleships::CoordinateHandler
- #y_coords — Battleships::CoordinateHandler