<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: michal</title>
    <description>The latest articles on DEV Community by michal (@michal15).</description>
    <link>https://dev.to/michal15</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1436878%2Ffb05cce5-156f-481e-84b5-20baa4555f95.jpg</url>
      <title>DEV Community: michal</title>
      <link>https://dev.to/michal15</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/michal15"/>
    <language>en</language>
    <item>
      <title>I Built a Solver That Reads Block Blast Screenshots and Plans the Best Moves</title>
      <dc:creator>michal</dc:creator>
      <pubDate>Fri, 30 Oct 2026 21:52:48 +0000</pubDate>
      <link>https://dev.to/michal15/i-built-a-solver-that-reads-block-blast-screenshots-and-plans-the-best-moves-3cj4</link>
      <guid>https://dev.to/michal15/i-built-a-solver-that-reads-block-blast-screenshots-and-plans-the-best-moves-3cj4</guid>
      <description>&lt;p&gt;Like a lot of people, I got hooked on Block Blast — and kept dying on boards that looked totally winnable. So I built a solver for it.&lt;br&gt;
The idea is simple: upload a screenshot of your game, and the solver reads the board for you, then shows the best move for each of your 3 pieces, step by step.&lt;br&gt;
Try it live: &lt;a href="https://blockblastsolversi.com" rel="noopener noreferrer"&gt;https://blockblastsolversi.com&lt;/a&gt;&lt;br&gt;
Here's how it works.&lt;br&gt;
Two problems, not one&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Vision. A screenshot has to become data: an exact 8×8 board plus the shapes of the 3 pieces in the tray.&lt;/li&gt;
&lt;li&gt;Search. Given that board, try the placements for all 3 pieces and keep the sequence that leaves the board healthiest.
Reading the board with Python
The screenshot analysis runs on a small FastAPI service:
Find the board area in the image and split it into an 8×8 grid
Classify each cell (filled / empty) by sampling colors near the cell center
Extract the tray pieces the same way, as mini shape grids
Themes and skins change the block colors, so fixed RGB matching failed constantly. Comparing relative color differences instead fixed most of it — on 71 real test screenshots, board-cell detection lands around 99% accuracy.
Planning the moves
Once the board is data, the search is straightforward:
Generate every legal placement for piece 1, 2 and 3
Simulate the game's line clears (rows + columns) after each sequence
Score the final board: reward clears and combos, punish rough surfaces, trapped holes and clutter
The search runs in the browser, so the scoring function has to be cheap and bad branches get pruned early. The result feels instant, even on a phone.
Stack
Next.js + TypeScript on the front end (search runs client-side)
Python + FastAPI for screenshot analysis
Capacitor wrapper for the Android app
Links&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Live solver: &lt;a href="https://blockblastsolversi.com" rel="noopener noreferrer"&gt;https://blockblastsolversi.com&lt;/a&gt;&lt;br&gt;
GitHub showcase: &lt;a href="https://github.com/buzdarama/block-blast-solver" rel="noopener noreferrer"&gt;https://github.com/buzdarama/block-blast-solver&lt;/a&gt;&lt;br&gt;
If you've built board-evaluation heuristics for puzzle games before, I'd genuinely like to hear how you scored "future flexibility" — that's the part I keep tweaking.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fklkxnxadpj5vtrgi4ai3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fklkxnxadpj5vtrgi4ai3.webp" alt=" " width="256" height="256"&gt;&lt;/a&gt;]&lt;br&gt;
GitHub showcase: &lt;a href="https://github.com/buzdarama/block-blast-solver" rel="noopener noreferrer"&gt;https://github.com/buzdarama/block-blast-solver&lt;/a&gt;&lt;br&gt;
If you've built board-evaluation heuristics for puzzle games before, I'd genuinely like to hear how you scored "future flexibility" — that's the part I keep tweaking.&lt;/p&gt;

</description>
      <category>python</category>
      <category>nextjs</category>
      <category>gamedev</category>
      <category>algorithms</category>
    </item>
  </channel>
</rss>
