Settings

Theme

Show HN: I Made a "Block Blast " Solver

adriclumma.com

2 points by xFixItNow 4 months ago · 0 comments · 1 min read

Reader

I’ve been hooked on the mobile game Block Blast! It’s like Tetris, but you place pieces anywhere on the board. The game ends when you can’t fit any of your three available pieces.

After a couple weeks of playing, I built a browser-based solver in HTML/JavaScript that finds the optimal placements for the current pieces. It simulates every possible sequence and picks the one with the smallest perimeter of empty space, breaking ties by choosing the layout with the fewest isolated gaps.

Using it, I took my high score from 36,000 to 80,000+ (and could’ve gone further). You can try it here: https://www.adriclumma.com/projects/blockBlastSolver/

Curious what you think — and if it works as well for you as it did for me.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection