Skip to content

Commit

Permalink
Merge branch 'dev' into puzzle_editor-short_truth_table
Browse files Browse the repository at this point in the history
  • Loading branch information
charlestian23 authored Apr 26, 2023
2 parents 20e565c e8704f9 commit beb60a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 181,8 @@ public String checkRuleRaw(TreeTransition transition) {
for (LightUpCell c : spots) {
ArrayList<Board> cases = getCases(parent.getBoard(), c);

// We want to return false if cases.size() is equal to 1 because case rules aren't supposed to have only 1 option
if (cases.size() == childTransitions.size() && cases.size() > 1) {
// We will allow case rules to have only one option
if (cases.size() == childTransitions.size() && cases.size() >= 1) {
boolean foundSpot = true;
for (TreeTransition childTrans : childTransitions) {
LightUpBoard actCase = (LightUpBoard) childTrans.getBoard();
Expand Down

0 comments on commit beb60a2

Please sign in to comment.