<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Chaos at the Sky]]></provider_name><provider_url><![CDATA[https://chaosatthesky.wordpress.com]]></provider_url><author_name><![CDATA[chaotic_iak]]></author_name><author_url><![CDATA[https://chaosatthesky.wordpress.com/author/chaoticiak/]]></author_url><title><![CDATA[Introduction to Combinatorial Game Theory, Part&nbsp;1]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>I feel the urge to write this post partially because I&#8217;m interested on this thing (even though I failed to understand much of the later part of <a href="https://en.wikipedia.org/wiki/Winning_Ways_for_your_Mathematical_Plays">Winning Ways</a> Vol. 1), and partially because I feel bad to begin <a href="https://chaosatthesky.wordpress.com/2014/12/08/the-genius-by-a-skymins-mind-7/">analysis of The Genius 3&#8217;s Monorail</a> with &#8220;Sprague-Grundy theorem&#8221; without people understanding a thing. Also because I should try writing mathematical posts and stuff. I&#8217;m not particularly experienced on this either, so what I&#8217;m writing is to the best of my knowledge and might be faulty at points. Blame Wikipedia for not having a good CGT article.</p>
<p>&#8230;so let&#8217;s go.</p>
<p><!--more--></p>
<p>In combinatorial game theory (CGT), we&#8217;re only interested in a relatively small set of games:</p>
<ul>
<li>The game must have a clearly defined positions. This rules out pretty much all physical games that cannot be translated into non-physical games, such as pretty much all sports. Note that Memory Maze (The Genius 3, Death Match 8-9) can be translated into a non-physical game easily; instead of using players as the pieces, they can use pawns instead.</li>
<li>The game must be two players. With more than two players, you can have <a href="https://en.wikipedia.org/wiki/Kingmaker_scenario">kingmaker scenarios</a> and the like, which I don&#8217;t think fit in CGT; try the more general game theory to handle that. This rules out many board games like <a href="https://en.wikipedia.org/wiki/Monopoly_%28game%29">Monopoly</a> and <a href="https://en.wikipedia.org/wiki/The_Settlers_of_Catan">The Settlers of Catan</a>.</li>
<li>The game may not involve any element of luck, such as rolling dice or tossing coins, or using a face-down deck of cards. This rules out even more games, including <a href="https://en.wikipedia.org/wiki/Poker">poker</a>.</li>
<li>The game must have perfect information, and is played sequentially. So no Black and White (The Genius 2, Death Match 9, 11), and no <a href="https://en.wikipedia.org/wiki/Goofspiel">Goofspiel</a> either, despite me also enjoying them. Perhaps later post.</li>
</ul>
<p>What does that leave? Well, plenty of them: <a href="https://en.wikipedia.org/wiki/Chess">chess</a>, <a href="https://en.wikipedia.org/wiki/Draughts">checkers</a>, <a href="https://en.wikipedia.org/wiki/Go_%28game%29">go</a>, <a href="https://en.wikipedia.org/wiki/Arimaa">Arimaa</a>, <a href="https://en.wikipedia.org/wiki/Tic-tac-toe">tic-tac-toe</a>, <a href="https://en.wikipedia.org/wiki/Hackenbush">Hackenbush</a>, <a href="https://en.wikipedia.org/wiki/Nim">Nim</a>, <a href="http://www.davpar.eu/oricards/abstrac.html">Abstrac</a>&#8230;</p>
<p>First, a formal definition of game. What is a game?</p>
<p>Mathematicians define it recursively, and not in terms of games, but in terms of positions. A <em>position</em> is a set in the form <img src="https://s0.wp.com/latex.php?latex=%5C%7BL%7CR%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5C%7BL%7CR%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5C%7BL%7CR%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;{L|R&#92;}" class="latex" />, where <img src="https://s0.wp.com/latex.php?latex=L&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=L&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=L&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="L" class="latex" /> is positions that can be reached in a single move by the first (Left) player, and <img src="https://s0.wp.com/latex.php?latex=R&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=R&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=R&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="R" class="latex" /> is positions that can be reached in a single move by the second (Right) player. So, for example, for tic-tac-toe in the starting position, we have:</p>
<p><a href="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe0.png"><img data-attachment-id="1623" data-permalink="https://chaosatthesky.wordpress.com/2015/01/02/intro-to-cgt-1/tictactoe0/" data-orig-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe0.png" data-orig-size="781,286" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="tictactoe0" data-image-description="" data-image-caption="" data-medium-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe0.png?w=300" data-large-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe0.png?w=781" class="aligncenter size-large wp-image-1623" src="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe0.png?w=1024&#038;h=375" alt="tictactoe0" srcset="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe0.png 781w, https://chaosatthesky.files.wordpress.com/2015/01/tictactoe0.png?w=150&amp;h=55 150w, https://chaosatthesky.files.wordpress.com/2015/01/tictactoe0.png?w=300&amp;h=110 300w, https://chaosatthesky.files.wordpress.com/2015/01/tictactoe0.png?w=768&amp;h=281 768w" sizes="(max-width: 781px) 100vw, 781px"   /></a></p>
<p>As long as you assume X plays first (and thus is Left) like me, you&#8217;re fine. And after X plays in the center, we have:</p>
<p><a href="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe1.png"><img data-attachment-id="1624" data-permalink="https://chaosatthesky.wordpress.com/2015/01/02/intro-to-cgt-1/tictactoe1/" data-orig-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe1.png" data-orig-size="781,286" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="tictactoe1" data-image-description="" data-image-caption="" data-medium-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe1.png?w=300" data-large-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe1.png?w=781" class="aligncenter size-large wp-image-1624" src="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe1.png?w=1024&#038;h=375" alt="tictactoe1" srcset="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe1.png 781w, https://chaosatthesky.files.wordpress.com/2015/01/tictactoe1.png?w=150&amp;h=55 150w, https://chaosatthesky.files.wordpress.com/2015/01/tictactoe1.png?w=300&amp;h=110 300w, https://chaosatthesky.files.wordpress.com/2015/01/tictactoe1.png?w=768&amp;h=281 768w" sizes="(max-width: 781px) 100vw, 781px"   /></a></p>
<p>But wait, after X plays, why are there still moves for X, you ask? Good point! Mathematicians are weird like that. But no, there is a better reason that you&#8217;ll see later.</p>
<p>Thus after several moves into the game, we get:</p>
<p><a href="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe2.png"><img data-attachment-id="1625" data-permalink="https://chaosatthesky.wordpress.com/2015/01/02/intro-to-cgt-1/tictactoe2/" data-orig-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe2.png" data-orig-size="661,211" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="tictactoe2" data-image-description="" data-image-caption="" data-medium-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe2.png?w=300" data-large-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe2.png?w=661" class="aligncenter size-large wp-image-1625" src="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe2.png?w=1024&#038;h=327" alt="tictactoe2" srcset="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe2.png 661w, https://chaosatthesky.files.wordpress.com/2015/01/tictactoe2.png?w=150&amp;h=48 150w, https://chaosatthesky.files.wordpress.com/2015/01/tictactoe2.png?w=300&amp;h=96 300w" sizes="(max-width: 661px) 100vw, 661px"   /></a></p>
<p>And when O plays at the top, thus getting three in a row, we get:</p>
<p><a href="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe3.png"><img loading="lazy" data-attachment-id="1626" data-permalink="https://chaosatthesky.wordpress.com/2015/01/02/intro-to-cgt-1/tictactoe3/" data-orig-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe3.png" data-orig-size="586,211" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="tictactoe3" data-image-description="" data-image-caption="" data-medium-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe3.png?w=300" data-large-file="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe3.png?w=586" class="aligncenter size-full wp-image-1626" src="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe3.png?w=586&#038;h=211" alt="tictactoe3" width="586" height="211" srcset="https://chaosatthesky.files.wordpress.com/2015/01/tictactoe3.png 586w, https://chaosatthesky.files.wordpress.com/2015/01/tictactoe3.png?w=150&amp;h=54 150w, https://chaosatthesky.files.wordpress.com/2015/01/tictactoe3.png?w=300&amp;h=108 300w" sizes="(max-width: 586px) 100vw, 586px" /></a></p>
<p>Whoa, what kind of game is the last one? <img src="https://s0.wp.com/latex.php?latex=%5C%7B%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5C%7B%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5C%7B%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;{|&#92;}" class="latex" /> is also known as the <em>zero game</em>, where neither player has any move and thus loses. Usually (when playing, you know, &#8220;normal&#8221; tic-tac-toe), this will be X&#8217;s move, and since X has no move (the left part is empty), X loses.</p>
<p>In fact, tic-tac-toe is a hard thing to play with, since it has a weird winning condition for mathematicians. The arguably simplest winning condition is that &#8220;the player that has no move loses&#8221;. Tic-tac-toe, chess and go don&#8217;t follow this condition: in tic-tac-toe, you win by making three-in-a-row. In chess, there is stalemate, where although a player has no move, they get a draw instead. In go, you will never run out of moves for obvious reasons (the board will never be full; when the board is full, the last move must have captured some stones). Arimaa follows this condition, but adds extra rules (getting a rabbit to the eighth rank or capturing all your opponents&#8217; rabbits also wins), so not exactly correct either. Only in checkers that this condition is fully respected: the player with no move loses. (If you get all pieces captured, you obviously have no move left.)</p>
<p>However, checkers still have draws, because the game can last forever (both players having kings that just move back and forth). Although this is okay, it complicates analysis of games. Not to mention that these games are interesting to play, and they are interesting exactly <em>because</em> they are hard; if they aren&#8217;t hard, they would have been solved by now and nobody would play them again. Thus, let&#8217;s add a few more conditions on what things combinatorial game theorists mean by a game:</p>
<ul>
<li>The game must eventually end.</li>
<li>The game cannot have draws.</li>
</ul>
<p>This leaves too little! And thus, several simpler games are born; Hackenbush and Nim are two of them. Let&#8217;s take a look on the first one.</p>
<p>In Hackenbush, there are several segments colored in bLue or Red (for Left and Right), connected to a special &#8220;ground&#8221;. One example starting position with six segments is below, but the position can be anything as it&#8217;s not intended to be a game for entertainment.</p>
<p><a href="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush0.png"><img loading="lazy" data-attachment-id="1627" data-permalink="https://chaosatthesky.wordpress.com/2015/01/02/intro-to-cgt-1/hackenbush0/" data-orig-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush0.png" data-orig-size="134,241" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="hackenbush0" data-image-description="" data-image-caption="" data-medium-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush0.png?w=134" data-large-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush0.png?w=134" class="aligncenter size-full wp-image-1627" src="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush0.png?w=134&#038;h=241" alt="hackenbush0" width="134" height="241" /></a></p>
<p>What are the rules of the game? Each turn, a player may remove one segment of their color (blue for Left and red for Right). All segments must be connected to the ground, probably through other segments; if they are not connected to the ground, they collapse and disappear. For example, this is the same position, along with the moves:</p>
<p><a href="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush1.png"><img data-attachment-id="1628" data-permalink="https://chaosatthesky.wordpress.com/2015/01/02/intro-to-cgt-1/hackenbush1/" data-orig-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush1.png" data-orig-size="961,241" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="hackenbush1" data-image-description="" data-image-caption="" data-medium-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush1.png?w=300" data-large-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush1.png?w=961" class="aligncenter size-large wp-image-1628" src="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush1.png?w=1024&#038;h=256" alt="hackenbush1" srcset="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush1.png 961w, https://chaosatthesky.files.wordpress.com/2015/01/hackenbush1.png?w=150&amp;h=38 150w, https://chaosatthesky.files.wordpress.com/2015/01/hackenbush1.png?w=300&amp;h=75 300w, https://chaosatthesky.files.wordpress.com/2015/01/hackenbush1.png?w=768&amp;h=193 768w" sizes="(max-width: 961px) 100vw, 961px"   /></a></p>
<p>&#8230;wait, what happened in Red&#8217;s second move? You see, when you remove the middle red body, the top part is no longer connected to the ground and thus they fall, disappearing.</p>
<p>Hackenbush&#8217;s winning condition is very simple: the player with no moves loses. Thus when there is no blue segment and it&#8217;s Left&#8217;s turn, Left loses, and if there is no red segment and it&#8217;s Right&#8217;s turn, Right loses. If there are no segments, of course, whoever to move loses, and that&#8217;s our zero game.</p>
<p>Let&#8217;s turn our attention to a simpler game than above, but a little more complex than a zero game&#8230;</p>
<p><a href="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush2.png"><img loading="lazy" data-attachment-id="1630" data-permalink="https://chaosatthesky.wordpress.com/2015/01/02/intro-to-cgt-1/hackenbush2/" data-orig-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush2.png" data-orig-size="205,88" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="hackenbush2" data-image-description="" data-image-caption="" data-medium-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush2.png?w=205" data-large-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush2.png?w=205" class="aligncenter size-full wp-image-1630" src="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush2.png?w=205&#038;h=88" alt="hackenbush2" width="205" height="88" srcset="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush2.png 205w, https://chaosatthesky.files.wordpress.com/2015/01/hackenbush2.png?w=150&amp;h=64 150w" sizes="(max-width: 205px) 100vw, 205px" /></a></p>
<p>What is this, a single blue segment? True. If Left removes this, we are left with the zero game. Right cannot move here.</p>
<p>Incidentally, drawing things all the time sucks, and thus let&#8217;s develop a little notation. The zero game, where everything is dead, let&#8217;s call this game <img src="https://s0.wp.com/latex.php?latex=0+%3D+%5C%7B%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=0+%3D+%5C%7B%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=0+%3D+%5C%7B%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="0 = &#92;{|&#92;}" class="latex" />. Thus the game with a single blue segment above is <img src="https://s0.wp.com/latex.php?latex=%5C%7B0%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5C%7B0%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5C%7B0%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;{0|&#92;}" class="latex" />. We call this game <img src="https://s0.wp.com/latex.php?latex=1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="1" class="latex" />, as it&#8217;s <em>one move advantage for Left</em>; if Left needs to make a move (and thus gets closer to having no move left), they can use this safely. And of course, <img src="https://s0.wp.com/latex.php?latex=%5C%7B1%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5C%7B1%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5C%7B1%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;{1|&#92;}" class="latex" /> naturally means <img src="https://s0.wp.com/latex.php?latex=2&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=2&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=2&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="2" class="latex" />, as it&#8217;s two moves advantage for Left: the first move moves to <img src="https://s0.wp.com/latex.php?latex=1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="1" class="latex" />, which gives one move advantage. Note that <img src="https://s0.wp.com/latex.php?latex=%5C%7B1%2C0%7C%5C%7D+%3D+%5C%7B1%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5C%7B1%2C0%7C%5C%7D+%3D+%5C%7B1%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5C%7B1%2C0%7C%5C%7D+%3D+%5C%7B1%7C%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;{1,0|&#92;} = &#92;{1|&#92;}" class="latex" />; if you can have one move advantage, why would you waste it?</p>
<p>Of course, on the opposite direction, we have <img src="https://s0.wp.com/latex.php?latex=%5C%7B%7C0%5C%7D+%3D+-1%2C+%5C%7B%7C-1%5C%7D+%3D+-2&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5C%7B%7C0%5C%7D+%3D+-1%2C+%5C%7B%7C-1%5C%7D+%3D+-2&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5C%7B%7C0%5C%7D+%3D+-1%2C+%5C%7B%7C-1%5C%7D+%3D+-2&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;{|0&#92;} = -1, &#92;{|-1&#92;} = -2" class="latex" />, and so on.</p>
<p>So why are these important? Why can&#8217;t we just say &#8220;Left wins&#8221;, &#8220;Right wins&#8221;, &#8220;second player wins&#8221;, and the like? This is because an important concept in CGT: <em>addition of games</em>. When adding games together, a player may move in either of the games, but not both.</p>
<p><a href="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush3.png"><img loading="lazy" data-attachment-id="1634" data-permalink="https://chaosatthesky.wordpress.com/2015/01/02/intro-to-cgt-1/hackenbush3/" data-orig-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush3.png" data-orig-size="369,70" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="hackenbush3" data-image-description="" data-image-caption="" data-medium-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush3.png?w=300" data-large-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush3.png?w=369" src="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush3.png?w=369&#038;h=70" alt="hackenbush3" width="369" height="70" class="aligncenter size-full wp-image-1634" srcset="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush3.png 369w, https://chaosatthesky.files.wordpress.com/2015/01/hackenbush3.png?w=150&amp;h=28 150w, https://chaosatthesky.files.wordpress.com/2015/01/hackenbush3.png?w=300&amp;h=57 300w" sizes="(max-width: 369px) 100vw, 369px" /></a></p>
<p><a href="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush4.png"><img loading="lazy" data-attachment-id="1635" data-permalink="https://chaosatthesky.wordpress.com/2015/01/02/intro-to-cgt-1/hackenbush4/" data-orig-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush4.png" data-orig-size="406,86" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="hackenbush4" data-image-description="" data-image-caption="" data-medium-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush4.png?w=300" data-large-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush4.png?w=406" src="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush4.png?w=406&#038;h=86" alt="hackenbush4" width="406" height="86" class="aligncenter size-full wp-image-1635" srcset="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush4.png 406w, https://chaosatthesky.files.wordpress.com/2015/01/hackenbush4.png?w=150&amp;h=32 150w, https://chaosatthesky.files.wordpress.com/2015/01/hackenbush4.png?w=300&amp;h=64 300w" sizes="(max-width: 406px) 100vw, 406px" /></a></p>
<p>What would the top one, <img src="https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="1 + (-1)" class="latex" />, be? If we interpret them as numbers, they add up to <img src="https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="0" class="latex" />, so maybe that&#8217;s a zero game?</p>
<p>Indeed, as we can check; <img src="https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29+%3D+%5C%7B0+%2B+%28-1%29+%7C+1+%2B+0%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29+%3D+%5C%7B0+%2B+%28-1%29+%7C+1+%2B+0%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29+%3D+%5C%7B0+%2B+%28-1%29+%7C+1+%2B+0%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="1 + (-1) = &#92;{0 + (-1) | 1 + 0&#92;}" class="latex" />. Since the <img src="https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="0" class="latex" /> won&#8217;t do anything else, we can ignore it (which also means <img src="https://s0.wp.com/latex.php?latex=0%2Bx+%3D+x&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=0%2Bx+%3D+x&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=0%2Bx+%3D+x&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="0+x = x" class="latex" /> for any game <img src="https://s0.wp.com/latex.php?latex=x&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=x&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=x&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="x" class="latex" />). Thus we are left with <img src="https://s0.wp.com/latex.php?latex=%5C%7B-1%7C1%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5C%7B-1%7C1%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5C%7B-1%7C1%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;{-1|1&#92;}" class="latex" />. Here, whoever to move must give their opponent moves, which means they lose. First player loss is always <img src="https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="0" class="latex" />.</p>
<p>What is the second one? Heck, what is a blue stick with a red stick on top of it? You can check that it is <img src="https://s0.wp.com/latex.php?latex=%5C%7B0%7C1%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5C%7B0%7C1%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5C%7B0%7C1%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;{0|1&#92;}" class="latex" />; Left to move destroys all, while Right to move leaves a blue stick, <img src="https://s0.wp.com/latex.php?latex=1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="1" class="latex" />. But what is its value?</p>
<p>This, as it turns out, is equal to <img src="https://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;frac{1}{2}" class="latex" />. To verify this, we can try adding it to itself, as well as adding a red stick (<img src="https://s0.wp.com/latex.php?latex=-1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=-1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=-1&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="-1" class="latex" />); this should be <img src="https://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D+%2B+%5Cfrac%7B1%7D%7B2%7D+%2B+%28-1%29+%3D+0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D+%2B+%5Cfrac%7B1%7D%7B2%7D+%2B+%28-1%29+%3D+0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D+%2B+%5Cfrac%7B1%7D%7B2%7D+%2B+%28-1%29+%3D+0&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;frac{1}{2} + &#92;frac{1}{2} + (-1) = 0" class="latex" />, so loss for either player to move. Is it?</p>
<p><a href="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush5.png"><img loading="lazy" data-attachment-id="1636" data-permalink="https://chaosatthesky.wordpress.com/2015/01/02/intro-to-cgt-1/hackenbush5/" data-orig-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush5.png" data-orig-size="55,86" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="hackenbush5" data-image-description="" data-image-caption="" data-medium-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush5.png?w=55" data-large-file="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush5.png?w=55" src="https://chaosatthesky.files.wordpress.com/2015/01/hackenbush5.png?w=55&#038;h=86" alt="hackenbush5" width="55" height="86" class="aligncenter size-full wp-image-1636" /></a></p>
<p>Yes, it is. With Left to move, they have pretty much no choice; they must take down one of the tall sticks. Right can then save themself by taking the top red segment (otherwise as Left moves next, that segment will fall down). The remaining game is exactly <img src="https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="1 + (-1)" class="latex" /> above. With Right to move, they should save one top segment for the same reason, but after this Left can knock down the remaining top segment, leaving again <img src="https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=1+%2B+%28-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="1 + (-1)" class="latex" />. (If Right moved on the lone red segment, the remaining game is <img src="https://s0.wp.com/latex.php?latex=%5C%7B0%7C1%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5C%7B0%7C1%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5C%7B0%7C1%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;{0|1&#92;}" class="latex" />, which cannot be good for Right; if Right is to move, Left still has moves, but if Left is to move, Right has no move.) Thus <img src="https://s0.wp.com/latex.php?latex=%5C%7B0%7C1%5C%7D+%3D+%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5C%7B0%7C1%5C%7D+%3D+%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5C%7B0%7C1%5C%7D+%3D+%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;{0|1&#92;} = &#92;frac{1}{2}" class="latex" />.</p>
<p>Confused? Yes, it&#8217;s pretty confusing, but that&#8217;s CGT.</p>
<p><a href="https://chaosatthesky.wordpress.com/2015/01/04/intro-to-cgt-2/">Next part</a>, playing with Nim and impartial games.</p>
]]></html><thumbnail_url><![CDATA[https://chaosatthesky.files.wordpress.com/2015/01/hackenbush1.png?fit=440%2C330]]></thumbnail_url><thumbnail_width><![CDATA[439]]></thumbnail_width><thumbnail_height><![CDATA[110]]></thumbnail_height></oembed>