Sudoku Engine: Generator, Solver & Tutor avatar

Sudoku Engine: Generator, Solver & Tutor

Pricing

from $8.00 / 1,000 results

Go to Apify Store
Sudoku Engine: Generator, Solver & Tutor

Sudoku Engine: Generator, Solver & Tutor

The go-to Sudoku engine: generate unique puzzles (L1-L10), solve with human techniques, get step-by-step hints, analysis, and teaching traces. Built for apps, games, printables, and learning products.

Pricing

from $8.00 / 1,000 results

Rating

0.0

(0)

Developer

Komeil Mehranfar

Komeil Mehranfar

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

Sudoku Engine: Generate, Solve & Teach with Human Logic

The go-to Sudoku engine for apps, games, printables, and learning products. Generate unique puzzles with real difficulty bands, then solve them the way a strong human would, with named techniques, not blind computer search.

Keywords people search for: Sudoku generator · Sudoku solver · Sudoku API · puzzle difficulty · step-by-step Sudoku · Sudoku hints · Sudoku techniques (X-Wing, naked pairs, …)


What you can do

  • Generate Sudoku puzzles at precise difficulties (L1–L10, easy → extreme)
  • Batch-generate many unique grids with optional seeds (reproducible)
  • Solve Sudoku using human tactics, with summary or detailed step traces
  • Hint the next move, analyze difficulty, validate boards
  • Teach step-by-step with candidates and technique payloads

Why this Sudoku engine

Most tools either spit out a random grid or dump a machine solution. This engine:

You needYou get
Fair printables / gamesPuzzles graded to a real band (L1–L10)
Learning & tutoring UXNamed strategies + cause→effect steps
Stable integrations81-char boards, seeds, analysis JSON

Unique solutions, human-logic paths, and technique metadata, built to be the default Sudoku backend you plug into anything.


Difficulty bands (L1–L10)

BandLevelTypical techniques
L1EasyOpen singles
L2–L3Easy / MediumSingles, simple locked candidates
L4–L6Medium / HardPairs, pointing, box-line
L7–L8Hard / ExpertWings, early chains
L9–L10ExtremeAdvanced & rare tactics

Start with L1–L3 while testing; raise timeoutMs (30–60s) for harder bands.


Operations

Set operation once per run. Results go to the dataset and key-value OUTPUT.

Sudoku generator

OperationInputOutput
generatedifficulty, optional seed, timeoutMspuzzle, solution, analysis
batchGeneratesame + count (1–50)one dataset row per puzzle
{
"operation": "generate",
"difficulty": "L3",
"seed": 42,
"timeoutMs": 30000
}

Sudoku solver & helpers

Boards are 81 characters, row-major, digits 1–9, empty = 0.

OperationReturns
solveSolved grid + analysis
solveSummaryCompact human-logic steps
solveDetailedDetailed cause → effect traces
analyzeUniqueness, difficulty, hardest technique, score
hintNext human step (no full solve)
validateRule / structure checks
teachTeaching payload (board, candidates, step)
candidatesPencil marks for every cell
{
"operation": "solveSummary",
"board": "530070000600195000098000060800060003400803001700020006060000280000419005000080079"
}

Input reference

FieldRequiredNotes
operation✅See list above
difficultygenerate*L1…L10 (default L3)
boardsolve* / analyze / …81-char string
seedoptionalReproducible generation
countoptionalBatch (1–50)
timeoutMsoptionalDefault 30000

Output

  1. Dataset: one item per result (batch expands to N rows)
  2. Key-value OUTPUT: full JSON payload

Console views: Overview · Analysis · Solve steps

{
"puzzle": "054063009962010730…",
"solution": "854763129962418735…",
"analysis": {
"hasSolution": true,
"hasUniqueSolution": true,
"difficulty": "L3",
"hardestTechnique": "…",
"score": 12.4
},
"seed": 42
}

Errors look like { "error": { "code": "bad_request", "message": "…" } }
(bad_request, unsolvable, timeout, internal, …).


How to run

Console: Start → choose operation → open Dataset / OUTPUT.

API:

curl "https://api.apify.com/v2/acts/komeil_mehranfar~sudoku-engine/runs?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"operation":"generate","difficulty":"L1","seed":1}'
import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client
.actor("komeil_mehranfar/sudoku-engine")
.call({ operation: "generate", difficulty: "L3", seed: 42 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0]);

Pricing (pay-per-event)

EventFree / StarterScaleBusiness
Actor start$0.001 / GB$0.001 / GB$0.001 / GB
Result (primary)$20 / 1,000$12 / 1,000$8 / 1,000

One puzzle on Starter ≈ $0.021. Scale and Business cut the per-result rate. Set a max charge per run if you want a ceiling (suggested min $0.05).


Performance

  • L1–L3: usually a few seconds
  • L7–L10: increase timeoutMs
  • Batch size multiplies result charges 1:1 with puzzles written

Support

Questions or feature requests: use the Issues / contact options on this Actor’s Apify Store page.