# Kakuro / Fillomino / Masyu / Yajilin / Hashiwokakero / Nurikabe / Slitherlink / Star Battle Puzzle Generator with Uniqueness Prover

Deterministically seeded generator for eight Nikoli logic-puzzle families — each board is grown solution-first, rendered as puzzle + solution SVGs, and verified by an exhaustive backtracking solver that counts solutions to two, so “unique” is a proof (and an exhausted budget is reported as unproven, never guessed).

> Canonical page: https://elysiatools.com/en/tools/kakuro-fillomino-masyu-yajilin-hashiwokakero-nurikabe-slitherlink-and-star-battle-puzzle-generator-with-uniqueness-prover

- **Category:** Games

- **Keywords:** kakuro, fillomino, masyu, yajilin, hashiwokakero, nurikabe, slitherlink, star battle, puzzle generator, uniqueness prover, nikoli, logic puzzle

## Overview

Solvers (all exhaustive, never heuristic): Kakuro cell-by-cell with row/column sum bounds; Fillomino region placement over fixed polyominoes anchored in scan order (each tiling counted once; the checkerboard reveal guarantees completeness — every region of ≥2 cells contains a revealed clue); Masyu/Yajilin cycle enumeration (anchor edge-order dedupe, pearl/loop rules validated on exit); Hashiwokakero per-line 0/1/2 bridge backtracking with degree caps, precomputed crossings and final connectivity; Nurikabe region placement (each island holds exactly one matching clue, sea connected, no 2×2 pool); Slitherlink vertex-grouped edge backtracking with union-find cycle closure; Star Battle row-by-row star pairs. Difficulty = solver nodes (<2k easy, <30k medium, else hard). Uniqueness: counting stops at two solutions — count=1 without exhausting the budget is a proof of uniqueness; exhaustion is reported honestly as “unproven”. The same family + seed always regenerates the identical board.

## Inputs

- **Puzzle family** (select)
- **Seed (deterministic)** (number): 12345
- **Show solution SVG** (checkbox)

## When to use

- When you need verified, unique Nikoli logic puzzles for print publications, web games, or competition sheets.
- When you require deterministic puzzle reproduction using identical seed values across different sessions.
- When you want objective difficulty ratings calculated from exact solver search node counts rather than heuristics.

## How it works

- Select your target Nikoli puzzle family (such as Slitherlink, Star Battle, or Nurikabe) and input an integer seed.
- The generator builds a valid solution-first board layout and minimises clues while preserving solvability.
- An exhaustive backtracking solver searches for up to two valid solutions, proving uniqueness if exactly one solution exists before the search budget completes.
- The tool outputs the difficulty rating, solver node count, proof status, and clean SVG visualisations for both the unsolved grid and the complete solution.

## Use cases

- Publishing logic puzzle books and newspapers requiring high-resolution vector SVGs and verified single-solution grids.
- Creating algorithmic benchmark boards and test suites for discrete constraint solvers and SAT engines.
- Generating fair, seeded puzzle rounds with answer keys for competitive logic puzzle tournaments.

## Frequently asked questions

### Which puzzle families can be generated?

The tool supports eight Nikoli families: Kakuro, Fillomino, Masyu, Yajilin, Hashiwokakero (Bridges), Nurikabe, Slitherlink, and Star Battle.

### How is puzzle uniqueness proven?

An exhaustive backtracking solver counts solutions up to two. If exactly one solution is found without exceeding the node search budget, uniqueness is mathematically proven.

### What does an 'unproven' status mean?

It means the solver reached its search node budget limit before confirming that no second solution exists, so uniqueness cannot be guaranteed.

### How is the puzzle difficulty determined?

Difficulty is classified directly by search node count: under 2,000 nodes is Easy, under 30,000 nodes is Medium, and higher node counts are Hard.

### Can I reproduce the exact same puzzle later?

Yes. Puzzle generation is fully deterministic; using the same puzzle family and seed number will always generate the identical board and solution.

## Related tools

- [CSS Gradient Mesh Generator (Conic + Radial Blend)](https://elysiatools.com/en/tools/css-gradient-mesh-generator): Layered radial-gradient "mesh" backgrounds with conic underlays, blend modes, grain and seeded layouts — live preview, CSS and Tailwind export.
- [CSV Histogram, Scatter and Box Plot Chart Studio](https://elysiatools.com/en/tools/csv-histogram-scatter-box-plot-chart-studio): Upload or paste a CSV and chart it instantly: histograms with Sturges / Freedman-Diaconis / Scott binning, scatter plots with Pearson r and a least-squares fit, and Tukey box plots — every chart downloadable as PNG and SVG.
- [SVG Sprite Sheet Generator](https://elysiatools.com/en/tools/svg-sprite-generator): Merge up to 30 SVG icons into one sprite sheet (symbol or view mode) with viewBox normalization, dedup, optional currentColor stripping, sanitization, live preview and usage snippets.
- [SVG Favicon Generator](https://elysiatools.com/en/tools/svg-favicon-generator): Turn an SVG or raster logo into a complete favicon pack with ICO, PNG variants, Apple touch icon, and web manifest
- [OAuth 2.0 / OIDC Authorization Code with PKCE Flow Visualizer](https://elysiatools.com/en/tools/oauth-oidc-authorization-code-pkce-flow-visualizer): Simulate the Authorization Code flow with PKCE end to end: verifier/challenge generation, authorization URL, token exchange, ID Token validation checklist and an interception-attack demo.
- [PKCE Code Verifier & Challenge Generator](https://elysiatools.com/en/tools/pkce-code-verifier-generator): Generate, validate and verify OAuth2 / OIDC PKCE (RFC 7636) code_verifier and S256 code_challenge pairs. Three modes: (1) generate a fresh verifier + challenge from cryptographically secure random bytes at 256/384/512/768-bit entropy, (2) audit a verifier you already have against the RFC — length (43–128), charset \[A-Za-z0-9-._~\] and ≥256-bit entropy, and (3) verify a verifier/challenge pair by recomputing BASE64URL(SHA256(verifier)). Optionally build the full authorization-request URL and token-exchange body. Complements the generic nonce-generator (which only emits a verifier+challenge pair) with RFC-compliance auditing and pair verification.
- [TOTP / HOTP Offline Code Generator](https://elysiatools.com/en/tools/totp-hotp-offline-generator): Generate RFC 6238 TOTP (time-based, 6/8 digits, 30/60s step) and RFC 4226 HOTP (counter-based) one-time passwords from a base32 shared secret, fully offline with HMAC-SHA1/256/512, plus an otpauth:// URI for importing into Google Authenticator / Authy
- [Data URI Generator](https://elysiatools.com/en/tools/data-uri-generator): Convert files into Data URIs (Base64 or percent-encoded) for inlining images, fonts, and assets directly into HTML, CSS, or Markdown

## Samples

- [SVG Samples](https://elysiatools.com/en/samples/svg-samples): Scalable Vector Graphics (SVG) samples demonstrating various SVG features and techniques
- [D3.js Data Visualization Samples](https://elysiatools.com/en/samples/d3js-data-visualization): Comprehensive D3.js data visualization examples including charts, maps, animations, and interactive visualizations
- [SVG Viewer Samples](https://elysiatools.com/en/samples/svg-viewer-samples): Sample SVG vector graphics (scene, icon set, diagram) for the in-browser SVG Viewer
- [XML Samples](https://elysiatools.com/en/samples/xml-samples): XML (eXtensible Markup Language) format examples from simple to complex structures
