Skip to content

SolomonHD/battleship_objects

 
 

Repository files navigation

Battleship Objects

*Classes ** Ship --Will hold initialize method that will create ship, with ship name and hit points Will also hold sunk_ship method that will return a false if ship runs out of hit points

** PlayerAttack Contains remove_hit_points method

**Board initialize method will create a board of two arrays of 50 elements each, representing X and Y coordinate report_ship_position will assign a ship to a position

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%