TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Magic: The Gathering Is Turing Complete (2019)

135 pointsby ekiauhceover 1 year ago

14 comments

dangover 1 year ago
Related:<p><i>Magic: The Gathering is Turing Complete (2019)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30502908">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30502908</a> - Feb 2022 (1 comment)<p><i>Magic: The Gathering is Turing Complete</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19847939">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19847939</a> - May 2019 (192 comments)<p><i>Magic: The Gathering Is Turing Complete</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19744072">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19744072</a> - April 2019 (1 comment)<p><i>Magic: The Gathering Is Turing Complete (2012)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15712377">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15712377</a> - Nov 2017 (115 comments)<p><i>Magic: The Gathering Is Turing Complete (v5)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10317224">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10317224</a> - Oct 2015 (31 comments)<p><i>Magic: the Gathering is Turing Complete</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4511384">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4511384</a> - Sept 2012 (1 comment)<p><i>Magic: the Gathering is Turing Complete</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4506865">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4506865</a> - Sept 2012 (1 comment)
bentonaover 1 year ago
Here&#x27;s a demo: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=pdmODVYPDLA" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=pdmODVYPDLA</a><p>Didn&#x27;t realize this before watching, but it&#x27;s interesting that there&#x27;s an incredibly complicated board state but the game state &#x2F; actions are deterministic, e.g. the players don&#x27;t have any choices about what to do once the machine is set up.
评论 #38647508 未加载
swagasaurus-rexover 1 year ago
I was thinking about how Magic the Gathering has so many infinite combos. In a deck with a wide variety of cards, you&#x27;re likely to be able to accidentally construct an infinite combo.<p>For those who don&#x27;t play, the most iconic infinite combo involves two cards, the first says &quot;Whenever you gain life, an opponent loses that much life.&quot;, the second card says &quot;Whenever an opponent loses life, you gain that much life.&quot;<p>These cards, when combined, do nothing... until you gain a life or an opponent takes damage. Then their effects combined means a chain reaction that repeats until your opponents are dead and you have gained as much life as they had.<p>There&#x27;s a variety of infinite combos in MTG. Some of them involve a creature that says &quot;Tap to add mana to your mana pool&quot; combined with another card that says &quot;Pay mana to untap a creature&quot;, allowing you to tap and untap an infinite number of times.<p>Some infinite combos involve returning a card to your hand, and recasting it which gives you the resources you need to return it to your hand and recast again. Some infinite combos involve looping a card from your discard pile repeatedly.<p>There are no one-card infinite combos (that would likely not make it past the testers), but there are plenty of two-card infinite combos, and an combinatorically increasing number of three and four card infinite combos.<p>I think there is some similarity computationally speaking between turing completeness, and the ability to construct an infinite combo in a game like MTG. An infinite allows you (the player) to continue taking the same action over and over again, accumulating some game resource in the process. This bears resemblance to the infinite tape Turing envisioned, a way to hold data. Player actions are much analogous to the instruction set. Infinites that are optional for the player (not all infinites in MTG are optional once the pieces are on the board) can also stand in for conditional statements - a key requirement of turing completeness.<p>I&#x27;d be interested in seeing the bare minimum number of cards required to generate turing completeness. If anybody else knows more about this domain, I would love to hear their opinions.
评论 #38647697 未加载
评论 #38647511 未加载
评论 #38648595 未加载
评论 #38651536 未加载
评论 #38653014 未加载
评论 #38648440 未加载
mdanielover 1 year ago
This paper gets cited in almost every Magic thread, of which there have been 2 recently that may interest this audience:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38525978">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38525978</a> <i>(I hacked Magic the Gathering: Arena for a 100% win rate)</i><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38533105">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38533105</a> <i>(Fine-tuning Mistral 7B on Magic the Gathering Draft)</i>
评论 #38665834 未加载
lvncelotover 1 year ago
A great read on that topic is Gwern&#x27;s Surprisingly Turing Complete: <a href="https:&#x2F;&#x2F;gwern.net&#x2F;turing-complete" rel="nofollow noreferrer">https:&#x2F;&#x2F;gwern.net&#x2F;turing-complete</a>
iamevnover 1 year ago
<a href="https:&#x2F;&#x2F;www.mtggoldfish.com&#x2F;deck&#x2F;3933484#paper" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.mtggoldfish.com&#x2F;deck&#x2F;3933484#paper</a><p>This deck has gotten cheaper in the last couple years, looks like it&#x27;s currently $2400 to build.
评论 #38647899 未加载
bitcharmerover 1 year ago
&gt; In [4], the author presents a Magic: The Gathering end- game that embeds a universal Turing machine. However, this work has a major issue: it’s not quite deterministic. At several points in the simulation, players have the ability to stop the computation at any time by opting to decline to use effects that say “may.” For example, Kazuul Warlord reads “Whenever Kazuul Warlord or another Ally enters the battlefield under your control, you may put a +1&#x2F; + 1 counter on each Ally you control.” Declining to use this ability will interfere with the Turing machine, either causing it to stop or causing it to perform a different calculation from the one intended. The construction as given in Churchill [4] works under the assumption that all players that are given the option to do something actually do it, but as the author notes it fails without this assumption. Attempts to correct this issue are discussed in Churchill et al. [5]. In this work, we solve this problem by reformulating the construction to exclusively use cards with mandatory effects<p>So they only use cards with mandatory effects&#x2F;triggers. Doesn&#x27;t this mean that this whole work if flawed because it only applies to a subset of MTG cards?
yterdyover 1 year ago
Waiting for someone to port Pokemon to MTG and then run that one exploit that allows you to execute arbitrary code using in-game commands in order to play Pong.
评论 #38650492 未加载
评论 #38665957 未加载
locengover 1 year ago
I&#x27;ve wondered can a game similar to MTG be created but cards for real-life, as a means to educate those who gravitate to devour such information and strategy as a force to first spot and raise the alarms loudly enough to counter any tyrannical-authoritarian tactics?<p>Perhaps a hybrid card-board game with a foundation similar to Monopoly?<p>It&#x27;s something I want to eventually help create, though I&#x27;m not in a position to put a proper effort needed to get the base created.<p>There are a few computer games that simulate this evolution though, no? But perhaps without the level of detail such as slippery-slope policies that an opponent [whether directed by a player or machine] may try to pass their parliament, other tactics like playing a card that successfully &quot;manufactures consent&quot; with the population to move various dials&#x2F;levers ahead to implement turnkey authoritarianism - to then at a certain point in future once enough foundation is laid, the population not paying adequate attention to the empire - entertained excessively, the player-machine can then execute on locking down their society?
评论 #38655075 未加载
xaropeover 1 year ago
MoTG also had the concept of a stack, e.g. if I have two mishra&#x27;s factory (<a href="https:&#x2F;&#x2F;gatherer.wizards.com&#x2F;pages&#x2F;card&#x2F;details.aspx?name=Mishra%27s%20Factory" rel="nofollow noreferrer">https:&#x2F;&#x2F;gatherer.wizards.com&#x2F;pages&#x2F;card&#x2F;details.aspx?name=Mi...</a>), activate one to make it a 2&#x2F;2, you decide to lightning bolt it (deals 3 damage), I then tap the other to make to a 3&#x2F;3, then tap this one to make it a 4&#x2F;4.<p>And phases and timing: if you don&#x27;t do anything, and I tap to attack, and THEN you lightning bolt it... then I can no longer tap it to... yeah, you get the idea.<p>Fun times.
extraduder_ireover 1 year ago
Always found it funny how &quot;the stack&quot;, which exists in MTG to make it more deterministic and comprehensible, also makes this kind of arbitrary complexity easier to reason about and pull off.<p>Also, how consistent the rules are overall. e.g. the players themselves count as planeswalkers.
airstrikeover 1 year ago
it&#x27;s Turing complete as long as the opposing player doesn&#x27;t cast Force of Will ;-)
评论 #38649842 未加载
评论 #38652678 未加载
calamari4065over 1 year ago
Hilarious that the first turn is to get infinite mana and then draw the entire library into your hand
rngrgbover 1 year ago
so if I kept redrawing neighbors I&#x27;d find that one woman, that could engineer my dream child (after we made sweet sweet love)?<p>that is, if another neighbor didn&#x27;t chose to redraw that exact time when I didn&#x27;t ...<p>wait. are you saying I need to get rid of that one neighbor? wait.