diff --git a/src/main/java/BattleShip/Ship.java b/src/main/java/BattleShip/Ship.java index 4502ccf..65609ee 100644 --- a/src/main/java/BattleShip/Ship.java +++ b/src/main/java/BattleShip/Ship.java @@ -6,4 +6,9 @@ public class Ship { int length; public int numOfHits = 0; boolean kill = false; + + public Ship(int l, String n) { + length = l; + name = n; + } }