🧩 Puzzle Generation
See what GameplayGen's puzzle generators actually produce. Each showcase below is a real example output — grids, puzzles, and solutions rendered exactly as the API returns them. All verified solvable, difficulty-rated, and ready to ship.
🧩 Grid Stealth Puzzle
Navigate from start to goal while avoiding patrol routes & vision cones
Grid Size
8×8
Patrols
3
Solution Steps
0
Difficulty
0.52
Try it
await pf.generate({
gameType: "grid-stealth",
params: {
width: 8, height: 8,
patrolCount: { min: 1, max: 4 },
patrolLength: { min: 3, max: 8 },
guardVisionRange: 2,
guardSpeed: 1
},
count: 1,
difficulty: { target: 0.60 }
})📝 Word Puzzle
Wordle-style word guessing with letter feedback
Word Length
5
Max Guesses
6
Dictionary
2,315 words
Difficulty
0.45
Try it
await pf.generate({
gameType: "word-puzzle",
params: { wordLength: 5, maxGuesses: 6 },
count: 30,
difficulty: { target: 0.50, curve: "ascending" }
})📦 Sokoban
Push boxes onto goal positions — optimal solution verified
Optimal Solution
uurRRDldR→ 9 moves
Grid Size
7×7
Boxes
2
Optimal Moves
9
Difficulty
0.55
Try it
await pf.generate({
gameType: "sokoban",
params: { width: 7, height: 7, boxes: 2 },
count: 5,
difficulty: { target: 0.50 }
})🔢 Sudoku
Classic 9×9 puzzle — unique solution guaranteed
Given Clues
30
Empty Cells
51
Difficulty
Medium
Score
0.50
Try it
await pf.generate({
gameType: "sudoku",
params: { difficulty: "medium" },
count: 10,
difficulty: { target: 0.50 }
})🎨 Nonogram
Picross-style logic puzzle — fill cells to reveal the pattern
Grid Size
10×10
Filled Cells
62
Pattern
Symmetric
Difficulty
0.38
Try it
await pf.generate({
gameType: "nonogram",
params: { width: 10, height: 10, pattern: "symmetric" },
count: 5,
difficulty: { target: 0.40 }
})🏰 Dungeon Layout
BSP dungeon generation — rooms, corridors, loot & enemies
Rooms
2
Path Length
18
Loot
1
Enemies
1
Try it
await pf.generate({
gameType: "dungeon-layout",
params: { width: 30, height: 20, roomCount: 5, lootDensity: 0.3 },
count: 1,
difficulty: { target: 0.50 }
})🗼 Tower Defense Waves
Budget-based wave composition with difficulty curves
Difficulty Curve
Waves
5
Enemies
31
Total HP
2600
Budget Used
81%
Try it
await pf.generate({
gameType: "tower-defense",
params: { waveCount: 10, budgetPerWave: 20, spawnPoints: 2 },
count: 1,
difficulty: { target: 0.50 }
})🎮 Platformer Chunk
Rhythm-based platform placement with jump arcs
Platforms
3
Hazards
2
Collectibles
3/3
Jump Height
4 cells
Try it
await pf.generate({
gameType: "platformer-chunk",
params: { width: 25, height: 12, jumpHeight: 4, platformDensity: 0.3 },
count: 1,
difficulty: { target: 0.50 }
})