Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
meikpiep committed Nov 3, 2024
1 parent 6972f87 commit dfc3499
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
package org.piepmeyer.gauguin.difficulty.human.strategy

import io.github.oshai.kotlinlogging.KotlinLogging
import org.piepmeyer.gauguin.difficulty.human.HumanSolverStrategy
import org.piepmeyer.gauguin.difficulty.human.PossiblesCache
import org.piepmeyer.gauguin.grid.Grid
import org.piepmeyer.gauguin.grid.GridCell

private val logger = KotlinLogging.logger {}

/**
* Finds a naked pair, that is two cell in the same row or column which have to same list of
* Finds a naked pair, that is two cells in the same row or column which have to same list of
* exactly two possible values. As these values could not occur in any other cells beside these
* two, these values get deletes from the other cages possibles.
* two, these values get deleted from the other cages possibles.
*/
class NakedPair : HumanSolverStrategy {
override fun fillCells(
Expand Down Expand Up @@ -42,8 +39,6 @@ class NakedPair : HumanSolverStrategy {
it.possibles -= possibles
}

logger.trace { "Naked pair found: ${cell.cellNumber} and ${otherCell.cellNumber}" }

return true
}
}
Expand Down

0 comments on commit dfc3499

Please sign in to comment.