<?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: Fooks Michael</title>
    <description>The latest articles on DEV Community by Fooks Michael (@gromozeka1980).</description>
    <link>https://dev.to/gromozeka1980</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3868012%2F510a3eb6-d4b3-4fd0-adc3-8d73561cac6d.png</url>
      <title>DEV Community: Fooks Michael</title>
      <link>https://dev.to/gromozeka1980</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gromozeka1980"/>
    <language>en</language>
    <item>
      <title>I turned a 2014 puzzle game into a Python one-liner challenge</title>
      <dc:creator>Fooks Michael</dc:creator>
      <pubDate>Wed, 08 Apr 2026 14:41:49 +0000</pubDate>
      <link>https://dev.to/gromozeka1980/i-turned-a-2014-puzzle-game-into-a-python-one-liner-challenge-49pi</link>
      <guid>https://dev.to/gromozeka1980/i-turned-a-2014-puzzle-game-into-a-python-one-liner-challenge-49pi</guid>
      <description>&lt;p&gt;In 2014, I made an inductive reasoning game for a Kivy contest — you figured out hidden rules about colored sequences by testing examples. Pure logic, no code involved. It was fun but rough.&lt;/p&gt;

&lt;p&gt;Recently I realized the same mechanic works perfectly as a programming puzzle: instead of proving you know the rule by passing an exam, you write a Python one-liner that captures it. So I rebuilt it for the browser with both modes.&lt;/p&gt;

&lt;p&gt;How it works&lt;br&gt;
Each level has a secret rule. You see caterpillars (colored segments) — some are valid, some aren't. You build your own to test hypotheses: the caterpillar smiles if it matches the rule, frowns if it doesn't.&lt;/p&gt;

&lt;p&gt;Caterpillar Logic — the original mode. When you think you've cracked it, take an exam: classify 15 caterpillars in a row. One mistake and you're back to exploring.&lt;/p&gt;

&lt;p&gt;Caterpillar Code — write a Python boolean expression that captures the rule. You get three variables: c (color list), f (color frequencies), s (run-length segments). Shorter expressions earn more stars — so there's a code golf element.&lt;/p&gt;

&lt;p&gt;20 built-in levels, plus user-created levels. The difficulty goes from "obvious after 3 examples" to "staring at the screen for 10 minutes."&lt;/p&gt;

&lt;p&gt;Tech&lt;br&gt;
Vanilla TypeScript, Canvas 2D for animations, Pyodide for client-side Python evaluation, Supabase for auth and community levels. No framework, everything runs in the browser.&lt;/p&gt;

&lt;p&gt;Inspired by Zendo and Eleusis — inductive reasoning board games where you deduce rules from examples instead of being told them.&lt;/p&gt;

&lt;p&gt;Try it&lt;br&gt;
Free, no ads, no signup required: &lt;a href="https://caterpillars.games" rel="noopener noreferrer"&gt;https://caterpillars.games&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The 2014 original (Kivy/Python): &lt;a href="https://github.com/gromozeka1980/kivy_contest_2014" rel="noopener noreferrer"&gt;https://github.com/gromozeka1980/kivy_contest_2014&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love any feedback — design, gameplay, difficulty, anything that felt off or satisfying.&lt;/p&gt;

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