Skip to content

Commit

Permalink
Merge pull request #21 from teogor/docs/Incorrect-Data-Types-in-Acces…
Browse files Browse the repository at this point in the history
…sing-Generated-Sudoku-Documentation#16

Corrected Data Types in "Accessing Generated Sudoku"
  • Loading branch information
teogor authored Aug 25, 2023
2 parents 4ae5350 + 805c188 commit 7b3f560
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import dev.teogor.sudoklify.model.Difficulty
import dev.teogor.sudoklify.model.Type

// Configure puzzle generation parameters
val params = sudokuParamsBuilder {
val sudokuParams = sudokuParamsBuilder {
difficulty { Difficulty.MEDIUM }
seed { 12345L }
type { Type.THREE_BY_THREE }
Expand All @@ -75,14 +75,14 @@ val generatedSudoku = sudokuParams.generateSudoku()
The `generatedSudoku` instance contains the puzzle and solution strings, difficulty level, and grid type. You can access these properties as follows:

```kotlin
val puzzleString = generatedSudoku.puzzle
val solutionString = generatedSudoku.solution
val puzzleBoard = generatedSudoku.puzzle
val solutionBoard = generatedSudoku.solution
val difficulty = generatedSudoku.difficulty
val type = generatedSudoku.type

// Print the properties
println("Puzzle: $puzzleString")
println("Solution: $solutionString")
println("Puzzle Board: $puzzleBoard")
println("Solution Board: $solutionBoard")
println("Difficulty: $difficulty")
println("Grid Type: $type")
```
Expand Down

0 comments on commit 7b3f560

Please sign in to comment.