From 9fbc09ea07725f5cc10a8fe86d952173f53b97f1 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 16 Mar 2023 12:43:19 -0700 Subject: [PATCH] Clear move history on setup --- src/Board.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Board.java b/src/Board.java index 03f22a5..26b0b63 100644 --- a/src/Board.java +++ b/src/Board.java @@ -63,6 +63,9 @@ public class Board { } public void setup() { + // Clear move history + moveHistory.clear(); + // Initialize board board = new Piece[BOARD_SIZE][BOARD_SIZE];