From 1d2c014378dd2bb8c2c277da4a52afdadedd2c39 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Mon, 6 Feb 2023 18:48:04 +0100 Subject: [PATCH] add Ship class --- src/main/java/BattleShip/Ship.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/main/java/BattleShip/Ship.java diff --git a/src/main/java/BattleShip/Ship.java b/src/main/java/BattleShip/Ship.java new file mode 100644 index 0000000..4502ccf --- /dev/null +++ b/src/main/java/BattleShip/Ship.java @@ -0,0 +1,9 @@ +package BattleShip; + +public class Ship { + + String name; + int length; + public int numOfHits = 0; + boolean kill = false; +}