# Sudoku puzzle generator, solver

Sudoku Puzzle generator and solver.

Generator Requirements:

- Must be able to create a puzzle (9x9 grid) in 4 difficulty level. (e.g. easy, medium, hard, expert) The puzzle data can be a simple comma delimited 81 digits. (9x9)

- The generator must also generate the answer for the puzzle.

Solver Requirements:

- The solver should be able to solve any (solvable) sudoku puzzle (the input is comma delimited 81 digits)

- Must take less than a second to solve the puzzle. (when running on Windows Phone device)

See below APIs...

///

/// Sudoku puzzle data.

///

public struct SudokuPuzzle

{

///

/// Seed for Random routine.

///

public int RandomSeed { get; set; }

///

/// Dificullty level from 0-100.

///

public int DifficultyLevel { get; set; }

///

/// Puzzle data. Comma-delimited text, with 81 digits represent numbers in each cell in 9x9 grids.

/// The digits order is left-to-right, then top-to-bottom. Use '0' to indicates blank cell.

///

public string Data { get; set; }

///

/// Puzzle solution.

///

public string Solution { get; set; }

}

///

/// Return SudokuPuzzle object based on randomSeed and desiredDifficultyLevel

///

/// When call with the same set of parameters, this function must generate the same SudokuPuzzle.

/// Number that use to seed the Random function.

/// Desired difficulty level. Easy = 0, Medium = 1, Hard = 2, Extreme = 3

///

public SudokuPuzzle CreateSudokuPuzzle(int randomSeed, int desiredDifficultyLevel);

///

/// Solve a given puzzle.

///

/// Puzzle to solve

/// Time limit. If the function takes longer than the limit, return false to indicate that the puzzle cannot be solved.

/// True if puzzle is solvable. Fasle if it can't be solve.

public bool SolveSudokuPuzzle(ref SudokuPuzzle inputPuzzle, int timeoutMS);

Skills: C# Programming, Windows Phone

( 6 reviews ) Sammamish, United States

Project ID: #4142639

## Awarded to:

Analist

Hi! I would like to make this project for you.

\$200 USD in 3 days
(3 Reviews)
4.1

## 2 freelancers are bidding on average \$200 for this job

samitXI

i am interested and fit your requirement . i am honest, dedicated,self-motivated, result oriented and time bound person. i deliver what you need.

\$200 USD in 3 days
(9 Reviews)
4.0