Skip to content

Commit

Permalink
Added classic 36x36 sudoku type
Browse files Browse the repository at this point in the history
  • Loading branch information
ILikeYourHat committed Dec 22, 2024
1 parent e020903 commit 63c2321
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/main/kotlin/io/github/ilikeyourhat/kudoku/type/Classic36x36.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package io.github.ilikeyourhat.kudoku.type

import io.github.ilikeyourhat.kudoku.model.SudokuType
import io.github.ilikeyourhat.kudoku.model.dividers.RegionDivider

/**
* WARNING: this sudoku type is very demanding for the computer resources. Generating and solving it would take
* a considerable amount of time, measured in minutes or even hours. For this reason, it is not recommended to use it
* unless you really know what you are doing.
*
* This class is not unit tested because of the above.
*
* "Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should."
*/
object Classic36x36 : SudokuType {

override val name = "classic_36x36"
override val sizeX = 36
override val sizeY = 36
override val maxValue = 36

override fun divider(): RegionDivider {
return RegionDivider()
.divideByRows()
.divideByColumns()
.divideByBlocks(6)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ val BUILD_IN_TYPES = listOf(
Classic12x12Vertical,
Classic16x16,
Classic25x25,
Classic36x36,
DoubleBackslash15x15,
DoubleDiagonal9x9,
DoubleSlash15x15,
Expand All @@ -27,4 +28,5 @@ val CLASSIC_TYPES = listOf(
Classic9x9,
Classic16x16,
Classic25x25,
Classic36x36
)

0 comments on commit 63c2321

Please sign in to comment.