<?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: Zhang Liu (刘章)</title>
    <description>The latest articles on DEV Community by Zhang Liu (刘章) (@zhang_liu_59ada456ee).</description>
    <link>https://dev.to/zhang_liu_59ada456ee</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%2F4157661%2F8ca867c7-bf87-403d-b031-b846b9475096.jpg</url>
      <title>DEV Community: Zhang Liu (刘章)</title>
      <link>https://dev.to/zhang_liu_59ada456ee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zhang_liu_59ada456ee"/>
    <language>en</language>
    <item>
      <title>I let an AI design LEGO-style models, then wrote code that decides whether they're allowed to exist</title>
      <dc:creator>Zhang Liu (刘章)</dc:creator>
      <pubDate>Fri, 02 Oct 2026 14:04:49 +0000</pubDate>
      <link>https://dev.to/zhang_liu_59ada456ee/i-let-an-ai-design-lego-style-models-then-wrote-code-that-decides-whether-theyre-allowed-to-exist-19o0</link>
      <guid>https://dev.to/zhang_liu_59ada456ee/i-let-an-ai-design-lego-style-models-then-wrote-code-that-decides-whether-theyre-allowed-to-exist-19o0</guid>
      <description>&lt;p&gt;I'm one person with four iOS apps released in September. This is about the one I found hardest to get right: Brickium.&lt;/p&gt;

&lt;p&gt;The idea: you list the bricks you already own, say what you want ("a small car with four wheels"), and the app designs a model from only those parts, then shows step-by-step 3D instructions.&lt;/p&gt;

&lt;p&gt;The problem: an AI that proposes a model will sometimes propose one that can't be built. A part you don't have, two bricks in the same space, a piece floating in the air.&lt;/p&gt;

&lt;p&gt;So the AI only proposes. A separate, non-AI checker then verifies three things: every part is in your inventory, nothing overlaps, and every brick is supported and connected. If a design fails, you never see it and you aren't charged for it.&lt;/p&gt;

&lt;p&gt;Things I learned:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Giving the model detailed repair hints helped a weaker model and hurt a stronger one. Error messages had to be tuned per model, not globally.&lt;/li&gt;
&lt;li&gt;A deterministic check is boring and it is the only reason I can say a model will actually build.&lt;/li&gt;
&lt;li&gt;The wait for a design is about 40 seconds. In the demo clip I cut that short; I'd rather say so.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Limits today: 29 basic part types in 20 colours, so models are small and blocky; the interface is English and Chinese; the app is for adults, kids can build along.&lt;/p&gt;

&lt;p&gt;App Store: &lt;a href="https://apps.apple.com/app/id6812500807" rel="noopener noreferrer"&gt;https://apps.apple.com/app/id6812500807&lt;/a&gt;&lt;br&gt;
I'd like to hear what you tried to build that it couldn't do.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>ios</category>
      <category>swift</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
