Fixed warning "Warning:(27, 12) Copy constructor does not copy field 'mostRecentlyFlippedPieces'", removed unused field

This commit is contained in:
2025-10-29 20:04:50 +01:00
parent edfb4ffe51
commit d1a9f94ee0

View File

@@ -13,7 +13,6 @@ import java.util.Set;
public final class Reversi extends TurnBasedGame { public final class Reversi extends TurnBasedGame {
private int movesTaken; private int movesTaken;
public static final char FIRST_MOVE = 'B';
private Set<Point> filledCells = new HashSet<>(); private Set<Point> filledCells = new HashSet<>();
private Move[] mostRecentlyFlippedPieces; private Move[] mostRecentlyFlippedPieces;
@@ -28,6 +27,7 @@ public final class Reversi extends TurnBasedGame {
super(other); super(other);
this.movesTaken = other.movesTaken; this.movesTaken = other.movesTaken;
this.filledCells = other.filledCells; this.filledCells = other.filledCells;
this.mostRecentlyFlippedPieces = other.mostRecentlyFlippedPieces;
} }