arXiv:1904.09828cs.AIMar 2019

Manuscript Offprint

arXiv:1904.09828

Magic: The Gathering is Turing Complete

Alex Churchill, Stella Biderman, Austin Herrick

Alex Churchill

Independent Researcher

Cambridge, United Kingdom

alex.churchill@cantab.net

Stella Biderman

Georgia Institute of Technology

Atlanta, United States of America

stellabiderman@gatech.edu

Austin Herrick

University of Pennsylvania

Philadelphia, United States of America

aherrick@wharton.upenn.edu

Abstract—Magic: The Gathering is a popular and famously complicated trading card game about magical combat. In this paper we show that optimal play in real-world Magic is at least as hard as the Halting Problem, solving a problem that has been open for a decade [1], [10]. To do this, we present a methodology for embedding an arbitrary Turing machine into a game of Magic such that the first player is guaranteed to win the game if and only if the Turing machine halts. Our result applies to how real Magic is played, can be achieved using standard-size tournament-legal decks, and does not rely on stochasticity or hidden information. Our result is also highly unusual in that all moves of both players are forced in the construction. This shows that even recognising who will win a game in which neither player has a non-trivial decision to make for the rest of the game is undecidable. We conclude with a discussion of the implications for a unified computational theory of games and remarks about the playability of such a board in a tournament setting.

I. INTRODUCTION

Magic: The Gathering (also known as Magic) is a popular trading card game owned by Wizards of the Coast. Formally, it is a two-player zero-sum stochastic card game with imperfect information, putting it in the same category as games like poker and hearts. Unlike those games, players design their own custom decks out of a card-pool of over 20,000 cards. Magic's multifaceted strategy has made it a popular topic in artificial intelligence research.

In this paper, we examine Magic: The Gathering from the point of view of algorithmic game theory, looking at the computational complexity of evaluating who will win a game. As most games have finite limits on their complexity (such as the size of a game board) most research in algorithmic game theory of real-world games has primarily looked at generalisations of commonly played games rather than the real-world versions of the games. A few real-world games have been found to have non-trivial complexity, including Dots-and-Boxes, Jenga and Tetris [8]. We believe that no real-world game is known to be harder than NP previous to this work.

Even when looking at generalised games, very few examples of undecidable games are known. On an abstract level, the Team Computation Game [9] shows that some games can be undecidable, if they are a particular kind of team game with imperfect information. The authors also present an equivalent construction in their Constraint Logic framework that was used by Coulombe and Lynch (2018) [7] to show that some video games, including Super Smash Bros Melee and Mario Kart, have undecidable generalisations. Constraint Logic is a highly successful and highly flexible framework for modelling games as computations.

The core of this paper is the construction presented in Section IV: a universal Turing machine embedded into a game of Magic: The Gathering. As we can arrange for the victor of the game to be determined by the halting behaviour of the Turing machine, this construction establishes the following theorem:

Theorem 1: Determining the outcome of a game of Magic: The Gathering in which all remaining moves are forced is undecidable.