start game stuff - both online and offline #13

Merged
lgc merged 24 commits from start-game into main 2024-12-13 16:27:43 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit b958ffd6b9 - Show all commits

View File

@ -1,4 +1,5 @@
import java.util.ArrayList;
import java.util.List; import java.util.List;
public class Board { public class Board {
@ -10,6 +11,8 @@ public class Board {
public Board(int size) { public Board(int size) {
this.size = size; this.size = size;
this.ships = new ArrayList<>();
this.hits = new ArrayList<>();
this.createShip(size - 13); this.createShip(size - 13);
} }