mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Fixed warning "Warning:(27, 12) Copy constructor does not copy field 'mostRecentlyFlippedPieces'", removed unused field
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user