sudokuAlt (version 0.2-1)

seedGame: Starting Point to Make a Random Sudoku Game

Description

Generate a random sudoku game starting point

Usage

seedGame(n = 3)

Arguments

n

Size of the game, n^2 x n^2

Value

A sparse unsolved sudoku game

Details

Generates a game with one instance of each symbol in random positions.

Examples

Run this code
# NOT RUN {
set.seed(2345)
g <- seedGame(3)
sg <- solve(g) ## a completed random game
plot(sg)
# }

Run the code above in your browser using DataLab