Josiah Winslow<p><a href="https://hachyderm.io/tags/AGBIC" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AGBIC</span></a> Day 22</p><p>Holy crap, I just found the subtlest bug in my <a href="https://hachyderm.io/tags/pico8" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pico8</span></a> Othello <a href="https://hachyderm.io/tags/AI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AI</span></a>.</p><p>I'm using alpha-beta pruning w/negamax, and my alpha starts at 0x8000 (-32768). With each <a href="https://hachyderm.io/tags/recursive" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>recursive</span></a> call, beta becomes -alpha.</p><p>Trouble is, -0x8000==0x8000. Which sometimes leads to stupid moves...</p><p><a href="https://hachyderm.io/tags/gamejam" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gamejam</span></a> <a href="https://hachyderm.io/tags/gamedevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gamedevelopment</span></a> <a href="https://hachyderm.io/tags/gamedev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gamedev</span></a> <a href="https://hachyderm.io/tags/indiedev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>indiedev</span></a> <a href="https://hachyderm.io/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>