diff --git a/src/battleship/Battleship.java b/src/battleship/Battleship.java index 6df572f..daa2d2d 100644 --- a/src/battleship/Battleship.java +++ b/src/battleship/Battleship.java @@ -3,7 +3,6 @@ package battleship; public class Battleship { public static void main(String[] args) { - } } diff --git a/src/battleship/model/player/Player.java b/src/battleship/model/player/Player.java new file mode 100644 index 0000000..900a03d --- /dev/null +++ b/src/battleship/model/player/Player.java @@ -0,0 +1,22 @@ +package battleship.model.player; + +import battleship.utils.Triplet; + +import java.util.ArrayList; + +public abstract class Player { + + protected ArrayList ships = new ArrayList<>(); + protected ArrayList moves = new ArrayList<>(); + + public Player(){ + setShips(); + } + public void setShips(){ + + } + public void addMove(Triplet move){ + moves.add(move); + } + public abstract Triplet chooseMove(); +}