Skip to content

Commit

Permalink
Merge pull request #621 from charlestian23/puzzle_editor-short_truth_…
Browse files Browse the repository at this point in the history
…table

Fixed a bug where file wouldn't save due to batch grader updates
  • Loading branch information
charlestian23 authored Sep 29, 2023
2 parents de9f1c5 + 8ffad4f commit 3530840
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/edu/rpi/legup/model/Puzzle.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ public boolean isValidTextInput(String[] statements) {
* @return true if the board was solved correctly, false otherwise
*/
public boolean isPuzzleComplete() {
if (tree == null)
return false;

boolean isComplete = tree.isValid();
if (isComplete) {
for (TreeElement leaf : tree.getLeafTreeElements()) {
Expand Down

0 comments on commit 3530840

Please sign in to comment.