<?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: Benedetto Cattarinich</title>
    <description>The latest articles on DEV Community by Benedetto Cattarinich (@cattarinich).</description>
    <link>https://dev.to/cattarinich</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%2F920547%2F5d82ebfc-c509-406e-a294-932b5de456fa.jpeg</url>
      <title>DEV Community: Benedetto Cattarinich</title>
      <link>https://dev.to/cattarinich</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cattarinich"/>
    <language>en</language>
    <item>
      <title>Sudoku-Like Puzzle</title>
      <dc:creator>Benedetto Cattarinich</dc:creator>
      <pubDate>Mon, 07 Jul 2025 04:33:37 +0000</pubDate>
      <link>https://dev.to/cattarinich/sudoku-like-puzzle-32a3</link>
      <guid>https://dev.to/cattarinich/sudoku-like-puzzle-32a3</guid>
      <description>&lt;p&gt;Sudoku-Like Puzzle Rules&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;General Puzzle Structure&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The puzzle has 40 hexagonal cells arranged in a trapezoidal layout:

&lt;ul&gt;
&lt;li&gt;Rows of 6, 7, 8, 9, and 10 cells (from top to bottom).&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Each cell can contain an integer from 1 to 10.&lt;/li&gt;

&lt;li&gt;All values must be placed such that:

&lt;ul&gt;
&lt;li&gt;Each integer (1-10) appears exactly 4 times across the entire grid.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Block Constraints&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The grid is divided into 8 blocks (each with 5 cell indices).&lt;/li&gt;
&lt;li&gt;For each block:

&lt;ul&gt;
&lt;li&gt;No duplicate values.&lt;/li&gt;
&lt;li&gt;Each block must contain at least one prime number (2, 3, 5, or 7).&lt;/li&gt;
&lt;li&gt;Every prime in the block must be adjacent (a common edge) to an even number.&lt;/li&gt;
&lt;li&gt;Exception: value 2 is exempt from this requirement if it is in one of the two special blocks (see below).&lt;/li&gt;
&lt;li&gt;The sum of the values in each block must be unique (no two blocks can have the same total).&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;*&lt;em&gt;Special Block Rule: {2, 3, 5, 7, X} *&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Exactly two blocks must contain the set {2, 3, 5, 7, X}.&lt;/li&gt;
&lt;li&gt;In one of these blocks, X must be odd; in the other, X must be even.&lt;/li&gt;
&lt;li&gt;In these blocks:

&lt;ul&gt;
&lt;li&gt;The 2 is exempt from needing to be adjacent to an even number.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Adjacency Rule&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Two cells are adjacent if they have a common edge.&lt;/li&gt;
&lt;li&gt;For every prime value (except 2 in special blocks), there must be in the same block an adjacent cell that holds an even value.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Alignment Rule&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;There is an alignment mapping across the 40 cells.&lt;/li&gt;
&lt;li&gt;Cells that are "aligned" (e.g., in the same visual row, column, or diagonal) must not contain duplicate values.
&lt;em&gt;Note: Each cell usually has 6 (not 3) alignments, 3 along the edges and 3 along the vertices.&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;No Duplicate Values&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No repeated values within:

&lt;ul&gt;
&lt;li&gt;Any block,&lt;/li&gt;
&lt;li&gt;Any alignment group,&lt;/li&gt;
&lt;li&gt;The global digit distribution (each digit used exactly 4 times)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;The puzzle has a verified solution.&lt;/p&gt;

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