Skip to content

Commit

Permalink
Formats via Kotlin Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
meikpiep committed Aug 2, 2023
1 parent a627ec1 commit 7242cf9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ class GridSingleCageCreator(
if (cage.numberOfCells == 2) {
for (i1 in variant.possibleDigits) {
for (i2 in i1 + 1..variant.maximumDigit) {
if (i2 - i1 == cage.result || i1 - i2 == cage.result
|| cage.result * i1 == i2 || cage.result * i2 == i1
|| i1 + i2 == cage.result || i1 * i2 == cage.result) {
if (i2 - i1 == cage.result || i1 - i2 == cage.result ||
cage.result * i1 == i2 || cage.result * i2 == i1 ||
i1 + i2 == cage.result || i1 * i2 == cage.result
) {
allResults.add(intArrayOf(i1, i2))
allResults.add(intArrayOf(i2, i1))
}
Expand Down

0 comments on commit 7242cf9

Please sign in to comment.