<?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: Chauhan Shrey</title>
    <description>The latest articles on DEV Community by Chauhan Shrey (@chauhan_shrey_40cbc3be31f).</description>
    <link>https://dev.to/chauhan_shrey_40cbc3be31f</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%2F3666941%2F8f425aca-c851-4089-b181-ef1d28b92bbb.png</url>
      <title>DEV Community: Chauhan Shrey</title>
      <link>https://dev.to/chauhan_shrey_40cbc3be31f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chauhan_shrey_40cbc3be31f"/>
    <language>en</language>
    <item>
      <title>Sherlawn Holmes: A Detective Game That Sends You Outside</title>
      <dc:creator>Chauhan Shrey</dc:creator>
      <pubDate>Wed, 07 Oct 2026 18:24:21 +0000</pubDate>
      <link>https://dev.to/chauhan_shrey_40cbc3be31f/sherlawn-holmes-a-detective-game-that-sends-you-outside-3pmg</link>
      <guid>https://dev.to/chauhan_shrey_40cbc3be31f/sherlawn-holmes-a-detective-game-that-sends-you-outside-3pmg</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week1-2026-10-05"&gt;Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Grass Hunt&lt;/strong&gt; 🌿 — an outdoor scavenger-hunt web app that literally forces players to touch grass.&lt;/p&gt;

&lt;p&gt;The Game Master describes their real neighbourhood on a phone (a neem tree, a Hanuman temple, a chai stall…), and an open-weight Gemma 4 model instantly writes riddles in that area's own language — Hinglish, Hindi, Gujarati or English. Teams then race outside against a countdown timer to &lt;em&gt;find the real thing and photograph it&lt;/em&gt;. A second Gemma call judges every photo: is it the right target, and is it genuinely outdoors (no sneaky photos of a TV screen or Google Images)? Points, retries, funny in-language commentary, a scoreboard, and a Gemma-written sports-commentator recap at the end.&lt;/p&gt;

&lt;p&gt;It's for kids, families, housing societies, school camps — anyone whose idea of fun has been stuck behind a screen. The screen is only the starting line and the referee; the game itself happens under the sky.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;🔗 LIVE: &lt;a href="https://sherlawn-holmes.onrender.com" rel="noopener noreferrer"&gt;https://sherlawn-holmes.onrender.com&lt;/a&gt;&lt;/strong&gt; — open it on any phone, no setup needed. (Free Render instance sleeps after ~15 min idle, so the first hit may take 30–60 s to wake up.)&lt;/p&gt;

&lt;p&gt;Prefer it offline? Run locally in 4 steps (see README) and open &lt;code&gt;http://&amp;lt;your-laptop-IP&amp;gt;:5000&lt;/code&gt; on any phone on the same WiFi — or flip &lt;code&gt;USE_OLLAMA=1&lt;/code&gt; and the whole game runs on a local Gemma model with zero internet.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Video demo: &lt;em&gt;(link here)&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;GitHub repo: &lt;a href="https://github.com/shreychauhan02/Sherlawn-Holmes" rel="noopener noreferrer"&gt;https://github.com/shreychauhan02/Sherlawn-Holmes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Deliberately tiny — no database, no login, no framework soup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;app.py&lt;/code&gt; — one Flask file: Gemma 4 REST calls (cloud &lt;em&gt;or&lt;/em&gt; local Ollama), defensive JSON parsing, error-safe routes&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;templates/index.html&lt;/code&gt; — the whole mobile-first game UI in one file (inline CSS + JS)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;The brain of the game is &lt;strong&gt;Gemma 4 (&lt;code&gt;gemma-4-26b-a4b-it&lt;/code&gt;)&lt;/strong&gt;, Google's open-weight model, used three ways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Riddle writer&lt;/strong&gt; — one call turns the Game Master's area description into N rhyming scavenger riddles in the chosen language and difficulty.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Photo judge&lt;/strong&gt; — a vision call checks &lt;code&gt;{correct, outdoors, comment}&lt;/code&gt; against each uploaded photo (client-side compressed to ≤800px).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commentator&lt;/strong&gt; — a final call writes the funny match recap.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Gemini's &lt;code&gt;generateContent&lt;/code&gt; REST endpoint is hit with a single swappable &lt;code&gt;MODEL&lt;/code&gt; constant, and because Gemma doesn't offer JSON mode, all instructions live in the user prompt and the parser digs the JSON out of the model's reasoning preamble with a retry. A &lt;code&gt;USE_OLLAMA=1&lt;/code&gt; flag switches the whole game to a &lt;strong&gt;fully offline local Gemma&lt;/strong&gt; via Ollama — same code, same game, zero internet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;A closed, fixed-pricing API would have killed this project twice over. Grass Hunt makes &lt;em&gt;many&lt;/em&gt; small vision calls per game — one per photo per team — and open weights mean I can run a whole society's tournament on a laptop with &lt;code&gt;ollama&lt;/code&gt; and no billing anxiety at all. It also means the game runs in a village ground with no internet, schools can self-host it, and anyone can swap in tomorrow's better open model by editing one line. The model is a replaceable part, not a paywall — that's what an open-weight ecosystem makes possible and a closed API doesn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;Built with Qoder (agentic IDE): Flask backend, single-file game UI, live API debugging sessions (model 500s, Gemma 4 reasoning-preamble JSON parsing) all verified end-to-end against the real model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Open-weight AI / Gemma category&lt;/li&gt;
&lt;li&gt;"Touch Grass" real-world impact&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
