🧩 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

difficulty: 0.52verified ✓
S
G
Start Goal WallGuard AGuard BGoal GuardVision

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

difficulty: 0.45solved in 4/6
S
T
A
R
E
R
A
I
S
E
A
R
E
N
A
C
R
A
N
E
Correct position Wrong position Not in word

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

difficulty: 0.55solvable ✓
🧑
Wall🧑 Player Box Goal

Optimal Solution

uurRRDldR9 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

Mediumunique solution ✓
5
3
7
6
1
9
5
9
8
6
8
6
3
4
8
3
1
7
2
6
6
2
8
4
1
9
5
8
7
9
5Given clue

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

difficulty: 0.38Symmetric
3
4
8
9
9
9
9
8
4
3
22
8
10
10
10
8
6
4
2
0
Pattern: Symmetric

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

difficulty: 0.45connected ✓
🚪
💎
🚧
🚧
👾
🏁
Wall Floor Corridor🚪 Entry🏁 Exit💎 Loot👾 Enemy

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: 0.48balanced ✓

Difficulty Curve

1
2
3
4
5
#1rush5×scout + 3×grunt11/12 budget330 HP
#2mixed4×grunt + 3×runner17/18 budget360 HP
#3tank3×heavy + 2×shielded22/24 budget690 HP
#4breather6×scout12/28 budget180 HP
#5boss1×boss_ogre + 4×grunt33/35 budget1040 HP

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

difficulty: 0.40completable ✓
🪙
🪙
🪙
🏃
🔺
🔺
Solid Platform🏃 Entry⭐ Exit🪙 Coin🔺 Hazard

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 }
})