summary refs log tree commit diff stats
path: root/blog/c
diff options
context:
space:
mode:
authorCrystal <crystal@wizard.tower>2024-02-22 19:09:31 +0100
committerCrystal <crystal@wizard.tower>2024-02-22 19:09:31 +0100
commitd76770c2a56bcc5cb795661d76e24f6116f26154 (patch)
tree2b143354dd465d941d6d53573bc0cfcfb464faab /blog/c
parent0e5f79d7bcf76abb6712ad3ecf69f28f27019fc2 (diff)
downloadwww-d76770c2a56bcc5cb795661d76e24f6116f26154.tar.gz
Add stuff
Diffstat (limited to 'blog/c')
-rw-r--r--blog/c/game.html90
1 files changed, 71 insertions, 19 deletions
diff --git a/blog/c/game.html b/blog/c/game.html
index 6543e5a..90c1965 100644
--- a/blog/c/game.html
+++ b/blog/c/game.html
@@ -3,7 +3,7 @@
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 <head>
-<!-- 2024-02-15 Thu 00:09 -->
+<!-- 2024-02-22 Thu 19:09 -->
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
 <meta name="viewport" content="width=device-width, initial-scale=1" />
 <title>The loneliness Game</title>
@@ -23,17 +23,17 @@
 <p>
 Hello !!, I hope you are doing great you amazing person whoever you are, and I really appreciate you reading my little C programming adventure. Soo basically I wanted to blog about a little game I made when bored, and figured out it would be a great way to optimize it, and learn new stuff too by documenting the process!
 </p>
-<div id="outline-container-orgbfcec8f" class="outline-2">
-<h2 id="orgbfcec8f">The concept :</h2>
-<div class="outline-text-2" id="text-orgbfcec8f">
+<div id="outline-container-org26dcb46" class="outline-2">
+<h2 id="org26dcb46">The concept :</h2>
+<div class="outline-text-2" id="text-org26dcb46">
 <p>
 Basically the player is faced with a NxM field made up with the sign <b>&ldquo;-&rdquo;</b> and the player is denoted by the symbol <b>&ldquo;+&rdquo;</b>, there are also Bonuses <b>&ldquo;B&rdquo;</b> which add 1 to your score, Traps <b>&ldquo;T&rdquo;</b>, that remove one from your score, and Dead <b>&ldquo;D&rdquo;</b> which resets the score to 0. I will go into more of the specifics later but for now this is how it works, and the controls are Basic WASD bindings, though i may go for a HJKL style later.
 </p>
 </div>
 </div>
-<div id="outline-container-org7a1e154" class="outline-2">
-<h2 id="org7a1e154">The code :</h2>
-<div class="outline-text-2" id="text-org7a1e154">
+<div id="outline-container-org37eeebf" class="outline-2">
+<h2 id="org37eeebf">The code :</h2>
+<div class="outline-text-2" id="text-org37eeebf">
 <div class="org-src-container">
 <pre class="src src-c"><span class="linenr">  1: </span><span style="color: #f9e2af;">#include</span> <span style="color: #f38ba8;">&lt;</span><span style="color: #a6e3a1;">stdio.h</span><span style="color: #f38ba8;">&gt;</span>
 <span class="linenr">  2: </span><span style="color: #f9e2af;">#include</span> <span style="color: #f38ba8;">&lt;</span><span style="color: #a6e3a1;">stdlib.h</span><span style="color: #f38ba8;">&gt;</span>
@@ -167,23 +167,22 @@ Basically the player is faced with a NxM field made up with the sign <b>&ldquo;-
 
 
 <p>
-Let&rsquo;s go step by step and see what we can fix or improve, to start off, line 4 to 10 can be reduced to a single line (which will be  beneficial later too)
+Let&rsquo;s go step by step and see what we can fix or improve, to start off, line 4 to 10 can be reduced to 7 or 8 lines (which will be  beneficial later too)
 </p>
 <div class="org-src-container">
-<pre class="src src-c"><span class="linenr">4: </span><span style="color: #f9e2af;">char</span> <span style="color: #cdd6f4;">input</span>,<span style="color: #cdd6f4;">map</span><span style="color: #f38ba8;">[</span><span style="color: #fab387;">5</span><span style="color: #f38ba8;">][</span><span style="color: #fab387;">5</span><span style="color: #f38ba8;">]</span> = <span style="color: #f38ba8;">{</span><span style="color: #a6e3a1;">'-'</span><span style="color: #f38ba8;">}</span>;
-</pre>
-</div>
-<p>
-Much better&#x2026;but can be even more better, why stop at 5 when we can give the choice to the user !!
-</p>
-<div class="org-src-container">
-<pre class="src src-c"><span class="linenr">4: </span><span style="color: #f9e2af;">int</span> <span style="color: #cdd6f4;">n</span>=<span style="color: #fab387;">5</span>,<span style="color: #cdd6f4;">m</span>=<span style="color: #fab387;">5</span>;
-<span class="linenr">5: </span><span style="color: #f9e2af;">char</span> <span style="color: #cdd6f4;">input</span>,<span style="color: #cdd6f4;">map</span><span style="color: #f38ba8;">[</span>n<span style="color: #f38ba8;">][</span>m<span style="color: #f38ba8;">]</span>=<span style="color: #f38ba8;">{</span><span style="color: #a6e3a1;">'-'</span><span style="color: #f38ba8;">}</span>;
+<pre class="src src-c"><span class="linenr"> 4: </span><span style="color: #f9e2af;">int</span> <span style="color: #cdd6f4;">n</span>=<span style="color: #fab387;">5</span>,<span style="color: #cdd6f4;">m</span>=<span style="color: #fab387;">5</span>;
+<span class="linenr"> 5: </span><span style="color: #f9e2af;">char</span> <span style="color: #cdd6f4;">input</span>,<span style="color: #cdd6f4;">map</span><span style="color: #f38ba8;">[</span><span style="color: #fab387;">50</span><span style="color: #f38ba8;">][</span><span style="color: #fab387;">50</span><span style="color: #f38ba8;">]</span>;
+<span class="linenr"> 6: </span>    <span style="color: #cba6f7;">for</span> <span style="color: #f38ba8;">(</span><span style="color: #f9e2af;">int</span> <span style="color: #cdd6f4;">i</span> = <span style="color: #fab387;">0</span>; i &lt; n; i++<span style="color: #f38ba8;">)</span> <span style="color: #f38ba8;">{</span>
+<span class="linenr"> 7: </span>        <span style="color: #cba6f7;">for</span> <span style="color: #fab387;">(</span><span style="color: #f9e2af;">int</span> <span style="color: #cdd6f4;">j</span> = <span style="color: #fab387;">0</span>; j &lt; m; j++<span style="color: #fab387;">)</span> <span style="color: #fab387;">{</span>
+<span class="linenr"> 8: </span>            map<span style="color: #f9e2af;">[</span>i<span style="color: #f9e2af;">][</span>j<span style="color: #f9e2af;">]</span> = <span style="color: #a6e3a1;">'-'</span>;
+<span class="linenr"> 9: </span>        <span style="color: #fab387;">}</span>
+<span class="linenr">10: </span>    <span style="color: #f38ba8;">}</span>
+<span class="linenr">11: </span>
 </pre>
 </div>
 
 <p>
-For now at least, n and m are hardcoded to 5, but this will change later.
+For now at least, n and m are hardcoded to 5, but this will change later. And I picked 50x50 as a max size because why not
 </p>
 
 <p>
@@ -283,12 +282,65 @@ After that we have some logic which should also be changed to account for the n
 <p>
 What this achieves is the &ldquo;teleportation effect&rdquo; whenever you are at the border of the screen!
 </p>
+
+
+<p>
+Now we fix things from line 80 to the end of the program, aka replacing ever occurrence of 5 with n or m
+</p>
+<div class="org-src-container">
+<pre class="src src-c"><span class="linenr"> 80: </span>    <span style="color: #cba6f7;">if</span> <span style="color: #f38ba8;">(</span>pos<span style="color: #fab387;">[</span><span style="color: #fab387;">0</span><span style="color: #fab387;">]</span> == bonus<span style="color: #fab387;">[</span><span style="color: #fab387;">0</span><span style="color: #fab387;">]</span> &amp;&amp; pos<span style="color: #fab387;">[</span><span style="color: #fab387;">1</span><span style="color: #fab387;">]</span> == bonus<span style="color: #fab387;">[</span><span style="color: #fab387;">1</span><span style="color: #fab387;">]</span><span style="color: #f38ba8;">)</span> <span style="color: #f38ba8;">{</span>
+<span class="linenr"> 81: </span>        score++;
+<span class="linenr"> 82: </span>        <span style="color: #cba6f7;">do</span><span style="color: #fab387;">{</span>
+<span class="linenr"> 83: </span>        bonus<span style="color: #f9e2af;">[</span><span style="color: #fab387;">0</span><span style="color: #f9e2af;">]</span>= arc4random_uniform<span style="color: #f9e2af;">(</span>n<span style="color: #f9e2af;">)</span>;
+<span class="linenr"> 84: </span>        bonus<span style="color: #f9e2af;">[</span><span style="color: #fab387;">1</span><span style="color: #f9e2af;">]</span>= arc4random_uniform<span style="color: #f9e2af;">(</span>m<span style="color: #f9e2af;">)</span>;
+<span class="linenr"> 85: </span>        <span style="color: #fab387;">}</span><span style="color: #cba6f7;">while</span><span style="color: #fab387;">(</span><span style="color: #f9e2af;">(</span>bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span> || <span style="color: #f9e2af;">(</span>bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span> || <span style="color: #f9e2af;">(</span>bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == pos<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == pos<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span><span style="color: #fab387;">)</span>;
+<span class="linenr"> 86: </span>    <span style="color: #f38ba8;">}</span>
+<span class="linenr"> 87: </span>    <span style="color: #cba6f7;">if</span> <span style="color: #f38ba8;">(</span>pos<span style="color: #fab387;">[</span><span style="color: #fab387;">0</span><span style="color: #fab387;">]</span> == trap<span style="color: #fab387;">[</span><span style="color: #fab387;">0</span><span style="color: #fab387;">]</span> &amp;&amp; pos<span style="color: #fab387;">[</span><span style="color: #fab387;">1</span><span style="color: #fab387;">]</span> == trap<span style="color: #fab387;">[</span><span style="color: #fab387;">1</span><span style="color: #fab387;">]</span><span style="color: #f38ba8;">)</span> <span style="color: #f38ba8;">{</span>
+<span class="linenr"> 88: </span>        score--;
+<span class="linenr"> 89: </span>        <span style="color: #cba6f7;">do</span><span style="color: #fab387;">{</span>
+<span class="linenr"> 90: </span>        trap<span style="color: #f9e2af;">[</span><span style="color: #fab387;">0</span><span style="color: #f9e2af;">]</span>= arc4random_uniform<span style="color: #f9e2af;">(</span>n<span style="color: #f9e2af;">)</span>;
+<span class="linenr"> 91: </span>        trap<span style="color: #f9e2af;">[</span><span style="color: #fab387;">1</span><span style="color: #f9e2af;">]</span>= arc4random_uniform<span style="color: #f9e2af;">(</span>m<span style="color: #f9e2af;">)</span>;
+<span class="linenr"> 92: </span>        <span style="color: #fab387;">}</span><span style="color: #cba6f7;">while</span><span style="color: #fab387;">(</span><span style="color: #f9e2af;">(</span>trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span> || <span style="color: #f9e2af;">(</span>trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span> || <span style="color: #f9e2af;">(</span>trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == pos<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == pos<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span><span style="color: #fab387;">)</span>;
+<span class="linenr"> 93: </span>        <span style="color: #f38ba8;">}</span>
+<span class="linenr"> 94: </span>    <span style="color: #cba6f7;">if</span> <span style="color: #f38ba8;">(</span>pos<span style="color: #fab387;">[</span><span style="color: #fab387;">0</span><span style="color: #fab387;">]</span> == death<span style="color: #fab387;">[</span><span style="color: #fab387;">0</span><span style="color: #fab387;">]</span> &amp;&amp; pos<span style="color: #fab387;">[</span><span style="color: #fab387;">1</span><span style="color: #fab387;">]</span> == death<span style="color: #fab387;">[</span><span style="color: #fab387;">1</span><span style="color: #fab387;">]</span><span style="color: #f38ba8;">)</span> <span style="color: #f38ba8;">{</span>
+<span class="linenr"> 95: </span>        score = <span style="color: #fab387;">0</span>;
+<span class="linenr"> 96: </span>        <span style="color: #cba6f7;">do</span><span style="color: #fab387;">{</span>
+<span class="linenr"> 97: </span>        death<span style="color: #f9e2af;">[</span><span style="color: #fab387;">0</span><span style="color: #f9e2af;">]</span>= arc4random_uniform<span style="color: #f9e2af;">(</span>n<span style="color: #f9e2af;">)</span>;
+<span class="linenr"> 98: </span>        death<span style="color: #f9e2af;">[</span><span style="color: #fab387;">1</span><span style="color: #f9e2af;">]</span>= arc4random_uniform<span style="color: #f9e2af;">(</span>m<span style="color: #f9e2af;">)</span>;
+<span class="linenr"> 99: </span>        <span style="color: #fab387;">}</span><span style="color: #cba6f7;">while</span><span style="color: #fab387;">(</span><span style="color: #f9e2af;">(</span>death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span> || <span style="color: #f9e2af;">(</span>death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span> || <span style="color: #f9e2af;">(</span>death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == pos<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == pos<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span><span style="color: #fab387;">)</span>;
+<span class="linenr">100: </span>    <span style="color: #f38ba8;">}</span>
+<span class="linenr">101: </span>    <span style="color: #cba6f7;">if</span> <span style="color: #f38ba8;">(</span>score % <span style="color: #fab387;">3</span> == <span style="color: #fab387;">0</span> &amp;&amp; score != <span style="color: #fab387;">0</span> &amp;&amp; stop == <span style="color: #fab387;">0</span><span style="color: #f38ba8;">)</span> <span style="color: #f38ba8;">{</span>
+<span class="linenr">102: </span>        map<span style="color: #fab387;">[</span>death<span style="color: #f9e2af;">[</span><span style="color: #fab387;">0</span><span style="color: #f9e2af;">]</span><span style="color: #fab387;">][</span>death<span style="color: #f9e2af;">[</span><span style="color: #fab387;">1</span><span style="color: #f9e2af;">]</span><span style="color: #fab387;">]</span> = <span style="color: #a6e3a1;">'-'</span>;
+<span class="linenr">103: </span>        <span style="color: #cba6f7;">do</span><span style="color: #fab387;">{</span>
+<span class="linenr">104: </span>        death<span style="color: #f9e2af;">[</span><span style="color: #fab387;">0</span><span style="color: #f9e2af;">]</span>= arc4random_uniform<span style="color: #f9e2af;">(</span>n<span style="color: #f9e2af;">)</span>;
+<span class="linenr">105: </span>        death<span style="color: #f9e2af;">[</span><span style="color: #fab387;">1</span><span style="color: #f9e2af;">]</span>= arc4random_uniform<span style="color: #f9e2af;">(</span>m<span style="color: #f9e2af;">)</span>;
+<span class="linenr">106: </span>        <span style="color: #fab387;">}</span><span style="color: #cba6f7;">while</span><span style="color: #fab387;">(</span><span style="color: #f9e2af;">(</span>death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span> || <span style="color: #f9e2af;">(</span>death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span> || <span style="color: #f9e2af;">(</span>death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == pos<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == pos<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span><span style="color: #fab387;">)</span>;
+<span class="linenr">107: </span>        stop = <span style="color: #fab387;">1</span>;
+<span class="linenr">108: </span>    <span style="color: #f38ba8;">}</span>
+<span class="linenr">109: </span>    <span style="color: #cba6f7;">else</span> <span style="color: #cba6f7;">if</span> <span style="color: #f38ba8;">(</span>score % <span style="color: #fab387;">3</span> != <span style="color: #fab387;">0</span><span style="color: #f38ba8;">)</span> <span style="color: #f38ba8;">{</span>
+<span class="linenr">110: </span>    stop = <span style="color: #fab387;">0</span>;
+<span class="linenr">111: </span>    <span style="color: #f38ba8;">}</span>
+<span class="linenr">112: </span>    <span style="color: #cba6f7;">if</span> <span style="color: #f38ba8;">(</span>moves % <span style="color: #fab387;">5</span> == <span style="color: #fab387;">0</span> &amp;&amp; moves != <span style="color: #fab387;">0</span><span style="color: #f38ba8;">)</span> <span style="color: #f38ba8;">{</span>
+<span class="linenr">113: </span>        <span style="color: #cba6f7;">do</span><span style="color: #fab387;">{</span>
+<span class="linenr">114: </span>            map<span style="color: #f9e2af;">[</span>trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">][</span>trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">]</span> = <span style="color: #a6e3a1;">'-'</span>;
+<span class="linenr">115: </span>        trap<span style="color: #f9e2af;">[</span><span style="color: #fab387;">0</span><span style="color: #f9e2af;">]</span>= arc4random_uniform<span style="color: #f9e2af;">(</span>n<span style="color: #f9e2af;">)</span>;
+<span class="linenr">116: </span>        trap<span style="color: #f9e2af;">[</span><span style="color: #fab387;">1</span><span style="color: #f9e2af;">]</span>= arc4random_uniform<span style="color: #f9e2af;">(</span>m<span style="color: #f9e2af;">)</span>;
+<span class="linenr">117: </span>        <span style="color: #fab387;">}</span><span style="color: #cba6f7;">while</span><span style="color: #fab387;">(</span><span style="color: #f9e2af;">(</span>trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == bonus<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span> || <span style="color: #f9e2af;">(</span>trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == death<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span> || <span style="color: #f9e2af;">(</span>trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> == pos<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">0</span><span style="color: #a6e3a1;">]</span> &amp;&amp; trap<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span> == pos<span style="color: #a6e3a1;">[</span><span style="color: #fab387;">1</span><span style="color: #a6e3a1;">]</span><span style="color: #f9e2af;">)</span><span style="color: #fab387;">)</span>;
+<span class="linenr">118: </span>
+<span class="linenr">119: </span>    <span style="color: #f38ba8;">}</span>
+</pre>
+</div>
+
+
+<p>
+Aaaaand this should be it
+</p>
 </div>
 </div>
 </div>
 <div id="postamble" class="status">
 <p class="author">Author: Crystal</p>
-<p class="date">Created: 2024-02-15 Thu 00:09</p>
+<p class="date">Created: 2024-02-22 Thu 19:09</p>
 </div>
 </body>
 </html>