Skip to content

Commit

Permalink
Deletes MathDokuCage2BackTrack algorithm as DLX can be used for every…
Browse files Browse the repository at this point in the history
… variant
  • Loading branch information
meikpiep committed Aug 2, 2023
1 parent 7242cf9 commit b9a76c3
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 353 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ package com.holokenmod.backtrack.hybrid

import com.holokenmod.GridSolver
import com.holokenmod.creation.dlx.MathDokuDLXSolver
import io.kotest.datatest.IsStableType

@IsStableType
class DlxFactory : SolverFactory {
override fun createSolver(): GridSolver {
class DlxFactory {
fun createSolver(): GridSolver {
return MathDokuDLXSolver()
}

override fun toString(): String {
return "DLX"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import io.kotest.datatest.withData
import io.kotest.matchers.shouldBe

class TestGridsRectingular : FunSpec({
val solverFactories = listOf(DlxFactory(), Cage2BackTrackFactory())
val solverFactories = listOf(DlxFactory())

context("2x3 grid") {
withData(solverFactories) { solverFactory ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import io.kotest.datatest.withData
import io.kotest.matchers.shouldBe

class TestGridsSquare : FunSpec({
val solverFactories = listOf(DlxFactory(), Cage2BackTrackFactory())
val solverFactories = listOf(DlxFactory())

context("2x2 grid") {
withData(solverFactories) { solverFactory ->
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b9a76c3

Please sign in to comment.