about summary refs log tree commit diff stats
path: root/html/kgame/index.html
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2025-05-05 21:31:05 -0400
committerelioat <elioat@tilde.institute>2025-05-05 21:31:05 -0400
commit8dd07060047e906a0cddb846898f32e620edf83b (patch)
treec7570824c7b696f708cf4b9d3151321b6a64ea89 /html/kgame/index.html
parentf74e0ee83e3bfb6a1e51c62855e0847b46a33815 (diff)
downloadtour-master.tar.gz
Diffstat (limited to 'html/kgame/index.html')
-rw-r--r--html/kgame/index.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/html/kgame/index.html b/html/kgame/index.html
index 453f40e..233c1d6 100644
--- a/html/kgame/index.html
+++ b/html/kgame/index.html
@@ -34,9 +34,17 @@
         <li><code>G @ (50 * !50 + (49 - !50)) : 1</code> (Diagonal line from top-right - demonstrates - operator)</li>
         <li><code>G @ (!2500) : ((!2500) / 50 + (!2500) % 50) % 2</code> (Checkerboard pattern - demonstrates / and % operators)</li>
         
-        <li><strong>Special Operations:</strong></li>
-        <li><code>G @ (where G=1) : 0</code> (Turn off currently 'on' cells - demonstrates where clause)</li>
-        <li><code>G @ (!2500) : ((!2500) / 50 - 25) * ((!2500) / 50 - 25) + ((!2500) % 50 - 25) * ((!2500) % 50 - 25) < 625</code> (Circular pattern - demonstrates complex math)</li>
+        <li><strong>Unary Operators:</strong></li>
+        <li><code>G @ (!25) : ~(!25)</code> (First cell 1, rest 0 - demonstrates ~ not operator)</li>
+        <li><code>G @ (!25) : |(!25)</code> (Reverse sequence - demonstrates | reverse operator)</li>
+        <li><code>G @ (!25) : $(!25)</code> (Rotate sequence - demonstrates $ rotate operator)</li>
+        <li><code>G @ (!25) : #(!25)</code> (Reshape sequence - demonstrates # reshape operator)</li>
+        
+        <li><strong>Operator Composition:</strong></li>
+        <li><code>G @ (!25) : ~((!25) / 5 + (!25) % 5) % 2</code> (Inverted checkerboard - demonstrates ~ with math)</li>
+        <li><code>G @ (!25) : |((!25) / 5 + (!25) % 5) % 2</code> (Flipped checkerboard - demonstrates | with math)</li>
+        <li><code>G @ (!25) : $((!25) / 5 + (!25) % 5) % 2</code> (Rotated checkerboard - demonstrates $ with math)</li>
+        <li><code>G @ (!25) : #((!25) % 2)</code> (Alternating columns reshaped - demonstrates # with math)</li>
     </ul>
 
     <canvas id="gridCanvas"></canvas>