sudoco
Module Contents
alltypes
Module Contents
interface
Algo
Module Contents
abstract
fun
solve
(
input
:
Sudoco
)
:
Sudoco
class
AsciiPrinter
:
Printer
Module Contents
AsciiPrinter
(
)
fun
print
(
sudoco
:
Sudoco
)
:
String
fun
solution
(
status
:
Status
,
duration
:
String
,
board
:
Sudoco
)
:
Unit
class
NoOpsPrinter
:
Printer
Module Contents
NoOpsPrinter
(
)
fun
print
(
sudoco
:
Sudoco
)
:
String
fun
solution
(
status
:
Status
,
duration
:
String
,
board
:
Sudoco
)
:
Unit
interface
Printer
Module Contents
abstract
fun
print
(
sudoco
:
Sudoco
)
:
String
abstract
fun
solution
(
status
:
Status
,
duration
:
String
,
board
:
Sudoco
)
:
Unit
class
SimpleAlgo
:
Algo
Module Contents
SimpleAlgo
(
)
fun
solve
(
input
:
Sudoco
)
:
Sudoco
data
class
SingleChar
Module Contents
SingleChar
(
char
:
Char
)
val
char
:
Char
fun
value
(
)
:
String
class
Solver
Module Contents
Solver
(
sudoco
:
Sudoco
,
algorithm
:
Algo
=
TreeSearching()
,
printer
:
Printer
=
NoOpsPrinter()
)
@ExperimentalTime
fun
solve
(
)
:
Unit
sealed
class
Status
Module Contents
object
Iterating
:
Status
object
Solved
:
Status
object
Stuck
:
Status
class
Sudoco
Module Contents
fun
blanks
(
)
:
Int
class
Builder
Module Contents
Builder
(
size
:
Int
=
DEFAULT_SIZE
)
fun
build
(
)
:
Sudoco
fun
withEntries
(
entries
:
List
<
Int
>
)
:
Builder
fun
withValue
(
row
:
Int
,
col
:
Int
,
value
:
Int
)
:
Builder
val
data
:
IntArray
fun
equals
(
other
:
Any
?
)
:
Boolean
fun
hashCode
(
)
:
Int
fun
isValid
(
)
:
Boolean
fun
query
(
row
:
Int
,
col
:
Int
)
:
Int
val
size
:
Int
class
TreeSearching
:
Algo
Module Contents
TreeSearching
(
)
fun
solve
(
input
:
Sudoco
)
:
Sudoco
package
nl.entreco.sudoco.shared
Module Contents
interface
Algo
Module Contents
abstract
fun
solve
(
input
:
Sudoco
)
:
Sudoco
interface
Printer
Module Contents
abstract
fun
print
(
sudoco
:
Sudoco
)
:
String
abstract
fun
solution
(
status
:
Status
,
duration
:
String
,
board
:
Sudoco
)
:
Unit
class
Solver
Module Contents
Solver
(
sudoco
:
Sudoco
,
algorithm
:
Algo
=
TreeSearching()
,
printer
:
Printer
=
NoOpsPrinter()
)
@ExperimentalTime
fun
solve
(
)
:
Unit
sealed
class
Status
Module Contents
object
Iterating
:
Status
object
Solved
:
Status
object
Stuck
:
Status
class
Sudoco
Module Contents
fun
blanks
(
)
:
Int
class
Builder
Module Contents
Builder
(
size
:
Int
=
DEFAULT_SIZE
)
fun
build
(
)
:
Sudoco
fun
withEntries
(
entries
:
List
<
Int
>
)
:
Builder
fun
withValue
(
row
:
Int
,
col
:
Int
,
value
:
Int
)
:
Builder
val
data
:
IntArray
fun
equals
(
other
:
Any
?
)
:
Boolean
fun
hashCode
(
)
:
Int
fun
isValid
(
)
:
Boolean
fun
query
(
row
:
Int
,
col
:
Int
)
:
Int
val
size
:
Int
package
nl.entreco.sudoco.shared.printers
Module Contents
class
AsciiPrinter
:
Printer
Module Contents
AsciiPrinter
(
)
fun
print
(
sudoco
:
Sudoco
)
:
String
fun
solution
(
status
:
Status
,
duration
:
String
,
board
:
Sudoco
)
:
Unit
class
NoOpsPrinter
:
Printer
Module Contents
NoOpsPrinter
(
)
fun
print
(
sudoco
:
Sudoco
)
:
String
fun
solution
(
status
:
Status
,
duration
:
String
,
board
:
Sudoco
)
:
Unit
package
nl.entreco.sudoco.shared.solvers
Module Contents
class
SimpleAlgo
:
Algo
Module Contents
SimpleAlgo
(
)
fun
solve
(
input
:
Sudoco
)
:
Sudoco
data
class
SingleChar
Module Contents
SingleChar
(
char
:
Char
)
val
char
:
Char
fun
value
(
)
:
String
class
TreeSearching
:
Algo
Module Contents
TreeSearching
(
)
fun
solve
(
input
:
Sudoco
)
:
Sudoco