JEncodedCell

value class JEncodedCell(val value: String)

A value class representing a J-Encoded string for Sudoku cells. The J-Encoded string uses letters 'a' to 'j', where 'j' represents 0.

Example:

val encodedCell = JEncodedCell("E")  // Represents 5
val intValue = encodedCell.toInt() // Converts back to integer value

Constructors

Link copied to clipboard
constructor(value: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun toInt(): Int

Converts this JEncodedCell to its corresponding integer value.

Link copied to clipboard
open override fun toString(): String