Skip to content

Commit 944094f

Browse files
committed
fixed a dumb bug
1 parent f252b2c commit 944094f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sokoswitch/core/src/sokoswitch/game/entities/blocks/abstracts/NumberedBlock.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public boolean switchPossibleIndirect(int direction) {
4545
return switchAmount > 0;
4646
}
4747

48+
public boolean isSolved() {
49+
return onState && switchAmount == 0;
50+
}
51+
4852
public int getSwitchAmount() {
4953
return switchAmount;
5054
}

0 commit comments

Comments
 (0)