<?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: Eliott</title>
    <description>The latest articles on DEV Community by Eliott (@eliott_636b066417d2278c7b).</description>
    <link>https://dev.to/eliott_636b066417d2278c7b</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%2F3979455%2F7bba4218-3427-45c5-9dce-ad58d491962f.png</url>
      <title>DEV Community: Eliott</title>
      <link>https://dev.to/eliott_636b066417d2278c7b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eliott_636b066417d2278c7b"/>
    <language>en</language>
    <item>
      <title>SOLSTICE, A shadow capture game in C</title>
      <dc:creator>Eliott</dc:creator>
      <pubDate>Sun, 21 Jun 2026 19:01:33 +0000</pubDate>
      <link>https://dev.to/eliott_636b066417d2278c7b/solstice-a-shadow-capture-game-in-c-mnn</link>
      <guid>https://dev.to/eliott_636b066417d2278c7b/solstice-a-shadow-capture-game-in-c-mnn</guid>
      <description>&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;A two-player terminal strategy game written in C. No libraries, no graphical engin, just ANSI colors and printf.&lt;/p&gt;

&lt;p&gt;Two players place stones on a 9×9 grid. Each stone casts a shadow away from the sun. The shadow captures every cell it crosses, and can recapture enemy territory too. The catch: the sun moves to a new position every turn, constantly shifting shadow directions.&lt;/p&gt;

&lt;p&gt;9 stones each, 18 turns. Most cells captured wins.&lt;/p&gt;

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

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/9q76JHVybSk"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

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


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/EliottBDR" rel="noopener noreferrer"&gt;
        EliottBDR
      &lt;/a&gt; / &lt;a href="https://github.com/EliottBDR/solstice" rel="noopener noreferrer"&gt;
        solstice
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;SOLSTICE — Shadow Capture&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;em&gt;A submission for the &lt;a href="https://dev.to/challenges/june-game-jam-2026-06-03" rel="nofollow"&gt;June Solstice Game Jam 2026&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What I Built&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;SOLSTICE is a two-player terminal strategy game written in C. It runs entirely in the terminal with ASCII rendering and ANSI colors — no external libraries, no graphical engine, just pure C and a bit of sunlight.&lt;/p&gt;
&lt;p&gt;The concept is simple: two players, a grid, and a sun that never stays still. Each turn, the sun moves to a new position along the border of the board. You place a stone, and that stone casts a shadow — a long streak of captured territory projected directly away from the sun. The longer the distance between your stone and the sun, the longer the shadow it casts. Place well, and a single stone can sweep across half the board in one move.&lt;/p&gt;
&lt;p&gt;After 18 turns, the player who controls the most cells wins.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;The Story&lt;/h2&gt;…&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/EliottBDR/solstice" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


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

&lt;p&gt;Pure C, split across 6 files (main.c, game.c, board.c, player.c, utils.c, game.h). Compile with make, run with ./solstice.&lt;/p&gt;

&lt;p&gt;The shadow casting works by computing a direction vector from the sun through the stone, then casting a ray in that direction. The length equals the Chebyshev distance between the stone and the sun — farther sun, longer shadow, just like real life.&lt;/p&gt;

&lt;p&gt;The sun follows a precomputed clockwise path around the board with a small random drift each turn, so it's predictable enough to strategize around but never perfectly calculable.&lt;/p&gt;

&lt;p&gt;The whole game is basically a simulation of what makes the solstice visually striking — a sun that moves and shadows that follow. The 18-turn structure represents the days around June 21st, and the two-player tension mirrors the solstice duality: longest day for one hemisphere, shortest for the other.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>gamechallenge</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
