From 0696b86f1a9b475f2cd6d68da0fb06eba292a1cf Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Mon, 6 Feb 2023 19:07:35 +0100 Subject: [PATCH] refactoring: --- src/main/java/BattleShip/Direction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/BattleShip/Direction.java b/src/main/java/BattleShip/Direction.java index 29caf4c..19cedde 100644 --- a/src/main/java/BattleShip/Direction.java +++ b/src/main/java/BattleShip/Direction.java @@ -2,8 +2,8 @@ package BattleShip; public class Direction { - int countHits; - int cellLocation; + int countHits, cellLocation; + public void setCount(int a) { countHits = a;