Pavel Dvorák Advanced Methods of Searching the Game Tree of 3

Total Page:16

File Type:pdf, Size:1020Kb

Pavel Dvorák Advanced Methods of Searching the Game Tree of 3 Charles University in Prague Faculty of Mathematics and Physics BACHELOR THESIS Pavel Dvoˇr´ak Advanced methods of searching the game tree of 3-dimensional Tic-Tac-Toe Department of Applied Mathematics Supervisor of the bachelor thesis: RNDr. Tom´aˇsValla, Ph.D. Study programme: Computer Science Specialization: General Computer Science Prague 2013 I would like to thank my supervisor Tom´aˇsValla for introducing me to combinato- rial game theory (together with Robert S´amal)andˇ for organizing our mini game seminary, where we discussed our game-theoretical thesis with Jitka Novotn´aand Pavel Vesel´y.I also would like to thank Michaela Zaloudkov´aforˇ the correction of my English. I declare that I carried out this bachelor thesis independently, and only with the cited sources, literature and other professional sources. I understand that my work relates to the rights and obligations under the Act No. 121/2000 Coll., the Copyright Act, as amended, in particular the fact that the Charles University in Prague has the right to conclude a license agreement on the use of this work as a school work pursuant to Section 60 paragraph 1 of the Copyright Act. In Prague date ............ Pavel Dvoˇr´ak N´azevpr´ace: Pokroˇcil´emetody prohled´av´an´ı hern´ıho stromu trojrozmˇern´ych piˇskvorek Autor: Pavel Dvoˇr´ak Katedra: Katedra aplikovan´ematematiky Vedouc´ıbakal´aˇrsk´epr´ace:RNDr. Tom´aˇsValla, PhD., Informatick´y´ustav Uni- verzity Karlovy Abstrakt: V t´etopr´acizkoum´amepoziˇcn´ıhry, zejm´enapak v´ıcerozmˇern´epiˇskvorky. Porovn´av´ameexistuj´ıc´ıpokroˇcil´ealgoritmy (Pn-search, Db-Search, λ-search) pro ˇreˇsen´ıpozic v poziˇcn´ıch hr´ach. Algoritmy nasazujeme na dom´eny her 43 a 53, coˇzjsou prvn´ınetrivi´aln´ıpˇripadytrojrozmˇern´ych piˇskvorek. Paralelizujeme Pn- search pro pˇr´ıpad, kdy existuje v´ıce poˇc´ateˇcn´ıch pozic. Pn-search aplikujeme jako jednovl´aknovou ´ulohu a ˇreˇs´ıme,jak sd´ılettranspoziˇcn´ıtabulku s vyˇreˇsen´ymi pozicemi. Hlavn´ıma ˇcistˇeteoretick´ymv´ysledkem je charakterizace grupy auto- morfism˚ukombinatorick´ekrychle nd se stejnou mnoˇzinoulini´ıjako v´ıcerozmˇern´e piˇskvorky. Toto je zobecnˇen´ıSilvera [The American Mathematical Monthly, Vol. 74, No. 3, 1967], kter´ypopsal automorfismy hry 43. Kl´ıˇcov´aslova: v´ıcerozmˇern´epiˇskvory, paralelizace, automorfismy Title: Advanced methods of searching the game tree of 3-dimensional Tic-Tac- Toe Author: Pavel Dvoˇr´ak Department: Department of Applied Mathematics Supervisor: RNDr. Tom´aˇsValla, PhD., Computer Science Institute of Charles University Abstract: In this thesis we study positional games, especially multidimensional tic-tac-toe. We compare present advanced algorithms (Pn-search, Db-search and λ-search) for position solving in positional games. We apply the algorithms on the domain of 43 and 53 games, which are the first nontrivial cases of 3-dimensional tic-tac-toe. We parallelize Pn-search for cases when there are more starting po- sitions. We apply Pn-search as a single-thread task and we solve how to share the transposition table with solved positions. Our main and clearly theoretical result is the characterization of the group of all automorphisms of combinatorial cube nd with the same set of lines as multidimensional tic-tac-toe has. This is a generalization of Silver [The American Mathematical Monthly, Vol. 74, No. 3, 1967], who characterized the automorphisms of the game 43. Keywords: multidimensional tic-tac-toe, parallelization, automorphisms Contents Introduction 3 1 Positional games 5 1.1 Tic-tac-toe ............................... 7 1.1.1 Qubic solving ......................... 7 2 Game tree searching algorithms 9 2.1 Proof-Number search ......................... 9 2.1.1 AND/OR Tree ........................ 9 2.1.2 Algorithm description .................... 10 2.1.3 Transposition table ...................... 12 2.1.4 Weak Proof-number search . 15 2.2 Dependency-based search ....................... 15 2.2.1 Structure states ........................ 15 2.2.2 Paths ............................. 16 2.2.3 Traversing the key classes . 17 2.2.4 Db-search and Qubic ..................... 17 2.3 λ-search ................................ 19 3 Solving Qubic 23 3.1 Properties of Qubic and its game tree . 23 3.2 Choice of algorithm .......................... 23 3.3 Program architecture ......................... 24 3.3.1 Parallelization ......................... 24 3.4 Our Result ............................... 25 3.4.1 Starting depth ......................... 25 3.4.2 Single-thread algorithms ................... 25 3.4.3 Parallel algorithm ....................... 25 3.5 Discussion ............................... 27 3.5.1 Automorphisms ........................ 27 3.5.2 Distributed calculation .................... 27 3.5.3 Other games .......................... 28 4 Automorphisms of the game nd 29 4.1 Introduction .............................. 29 4.2 More formally ............................. 29 Td 4.2.1 Order of 2 .......................... 30 4.3 Automorphisms of (2k)3 ....................... 31 4.3.1 Line and point classes .................... 31 T3 4.3.2 Generator of 2k ....................... 34 4.4 Automorphisms of nd ......................... 38 4.4.1 Corners, main diagonals and edges . 38 Td 4.5 Generator of the group n ...................... 42 Td 4.6 Order of the group n ........................ 45 Conclusion 49 1 Bibliography 51 List of Figures 53 List of Tables 55 List of Abbreviations 57 A Solving program documentation 59 A.1 Introduction .............................. 59 A.2 Algorithms ............................... 59 A.2.1 Pn-search ........................... 59 A.2.2 Db-search ........................... 61 A.2.3 λ-search ............................ 63 A.2.4 Transposition table ...................... 64 A.2.5 Automorphisms ........................ 66 A.2.6 Code generating ........................ 67 A.3 Data Structure ............................ 68 A.3.1 Game representation ..................... 68 A.3.2 Vertex ............................. 69 A.3.3 DbVertex ........................... 70 A.4 Settings ................................ 70 A.5 Inputs and Outputs .......................... 71 A.5.1 Outputs of parallel program . 72 A.6 Parallelization ............................. 72 A.6.1 Transposition table ...................... 72 2 Introduction Playing games has always been a pastime of the human race. Along with every game comes a question: How to play the game? There are two approaches how to answer this question. The first one is by experience. Usually when we play a game repeatedly, we learn with some time how to play this game good. The second approach is more formal. We can use mathematics to describe the rules and try to find the properties of the game. Mathematicians usually study games, where no randomness occurs, because the state of the game is determined only by players' moves. Classical game theory studies games with imperfect information. However in this thesis we are interested in tic-tac-toe, which is a game for 2 players with perfect information. These games are studied by combinatorial game theory. For some simple games with small state space only paper and pen suffice to find out if the first player can force the win. However, when the games are more complex the paper and pen do not suffice and we need computers. Computers are mainly used for 2 problems according to games: finding the winning strategy or creating the artificial intelligence for the game. Actually these problems are very similar, both are solved by searching algorithms. However, a lot of games have huge state space and searching the whole state space for finding the winning strategy would last very long. So AI searches only part of the state space and selects the best ply with respect to the searched part of the state space. Tic-tac-toe is one of the most famous games for two players. Even little children play it, because it has very simple rules. The size of a basic board of tic-tac-toe is 3 × 3 and it is easy to find by case analysis that the game ends with a draw, if both players play optimally. However when the size and dimension of the game board are bigger, the manual case analysis is impossible. We are interested if the first player can force the win in 3-dimensional tic-tac- toe. In tic-tac-toe with the board 2 × 2 × 2 and 3 × 3 × 3 the first player can force the win and it can be shown by simple case analysis. Hence the first non-trivial size of the board is 4 and tic-tac-toe with board 4 × 4 × 4 is called Qubic. Upon our knowledge, Qubic was solved twice in history by Oren Patashnik [5] in 1980 and by Louis V. Allis [1] in 1994. However, we are the first ones, as far as we know, who used the parallel algorithm. We apply Pn-search as a single-thread task and each starting position is solved in one thread. We found that parallel algorithm is easy to implement and it gives quite good results. Usually people are not interested how many winning strategies exist for the first or second player, but only if a winning strategy exists. Therefore automor- phisms are used very often, when a game is analyzed. All automorphisms for Qubic were characterized by Rolland Silver [7] in 1967. When we analyzed the 5 × 5 × 5, we found that the group of automorphism of 5 × 5 × 5 is isomorphic to the group of Qubic automorphisms. Hence we started to study automorphisms a little bit more. Some people ask about the automorphisms of general tic-tac-toe. We answer these questions and we characterized all automorphisms for tic-tac-toe played in general cube with arbitrary length of edge and dimension. This thesis was motivated by solving the game 5 × 5 × 5, which is an open problem. Unfortunately we did not manage to solve this game. The game 5×5×5 has a much bigger state space than Qubic and also the algorithms which we used 3 are not as efficient as for Qubic. Nonetheless, we still have two results: • We propose an easy-implemented parallelization of Pn-search, when there are more starting positions. • We characterize all automorphisms of the combinatorial cube nd with the multidimensional tic-tac-toe set of lines.
Recommended publications
  • Gradient Play in N-Cluster Games with Zero-Order Information
    Gradient Play in n-Cluster Games with Zero-Order Information Tatiana Tatarenko, Jan Zimmermann, Jurgen¨ Adamy Abstract— We study a distributed approach for seeking a models, each agent intends to find a strategy to achieve a Nash equilibrium in n-cluster games with strictly monotone Nash equilibrium in the resulting n-cluster game, which is mappings. Each player within each cluster has access to the a stable state that minimizes the cluster’s cost functions in current value of her own smooth local cost function estimated by a zero-order oracle at some query point. We assume the response to the actions of the agents from other clusters. agents to be able to communicate with their neighbors in Continuous time algorithms for the distributed Nash equi- the same cluster over some undirected graph. The goal of libria seeking problem in multi-cluster games were proposed the agents in the cluster is to minimize their collective cost. in [17]–[19]. The paper [17] solves an unconstrained multi- This cost depends, however, on actions of agents from other cluster game by using gradient-based algorithms, whereas the clusters. Thus, a game between the clusters is to be solved. We present a distributed gradient play algorithm for determining works [18] and [19] propose a gradient-free algorithm, based a Nash equilibrium in this game. The algorithm takes into on zero-order information, for seeking Nash and generalized account the communication settings and zero-order information Nash equilibria respectively. In discrete time domain, the under consideration. We prove almost sure convergence of this work [5] presents a leader-follower based algorithm, which algorithm to a Nash equilibrium given appropriate estimations can solve unconstrained multi-cluster games in linear time.
    [Show full text]
  • Game Playing
    Game Playing Philipp Koehn 29 September 2015 Philipp Koehn Artificial Intelligence: Game Playing 29 September 2015 Outline 1 ● Games ● Perfect play – minimax decisions – α–β pruning ● Resource limits and approximate evaluation ● Games of chance ● Games of imperfect information Philipp Koehn Artificial Intelligence: Game Playing 29 September 2015 2 games Philipp Koehn Artificial Intelligence: Game Playing 29 September 2015 Games vs. Search Problems 3 ● “Unpredictable” opponent ⇒ solution is a strategy specifying a move for every possible opponent reply ● Time limits ⇒ unlikely to find goal, must approximate ● Plan of attack: – computer considers possible lines of play (Babbage, 1846) – algorithm for perfect play (Zermelo, 1912; Von Neumann, 1944) – finite horizon, approximate evaluation (Zuse, 1945; Wiener, 1948; Shannon, 1950) – first Chess program (Turing, 1951) – machine learning to improve evaluation accuracy (Samuel, 1952–57) – pruning to allow deeper search (McCarthy, 1956) Philipp Koehn Artificial Intelligence: Game Playing 29 September 2015 Types of Games 4 deterministic chance perfect Chess Backgammon information Checkers Monopoly Go Othello imperfect battleships Bridge information Blind Tic Tac Toe Poker Scrabble Philipp Koehn Artificial Intelligence: Game Playing 29 September 2015 Game Tree (2-player, Deterministic, Turns) 5 Philipp Koehn Artificial Intelligence: Game Playing 29 September 2015 Simple Game Tree 6 ● 2 player game ● Each player has one move ● You move first ● Goal: optimize your payoff (utility) Start Your move Opponent
    [Show full text]
  • Tic-Tac-Toe and Machine Learning David Holmstedt Davho304 729G43
    Tic-Tac-Toe and machine learning David Holmstedt Davho304 729G43 Table of Contents Introduction ............................................................................................................................... 1 What is tic-tac-toe.................................................................................................................. 1 Tic-tac-toe Strategies ............................................................................................................. 1 Search-Algorithms .................................................................................................................. 1 Machine learning ................................................................................................................... 2 Weights .............................................................................................................................. 2 Training data ...................................................................................................................... 3 Bringing them together ...................................................................................................... 3 Implementation ......................................................................................................................... 4 Overview ................................................................................................................................ 4 UI .......................................................................................................................................
    [Show full text]
  • Graph Ramsey Games
    TECHNICAL R EPORT INSTITUT FUR¨ INFORMATIONSSYSTEME ABTEILUNG DATENBANKEN UND ARTIFICIAL INTELLIGENCE Graph Ramsey games DBAI-TR-99-34 Wolfgang Slany arXiv:cs/9911004v1 [cs.CC] 10 Nov 1999 DBAI TECHNICAL REPORT Institut f¨ur Informationssysteme NOVEMBER 5, 1999 Abteilung Datenbanken und Artificial Intelligence Technische Universit¨at Wien Favoritenstr. 9 A-1040 Vienna, Austria Tel: +43-1-58801-18403 Fax: +43-1-58801-18492 [email protected] http://www.dbai.tuwien.ac.at/ DBAI TECHNICAL REPORT DBAI-TR-99-34, NOVEMBER 5, 1999 Graph Ramsey games Wolfgang Slany1 Abstract. We consider combinatorial avoidance and achievement games based on graph Ramsey theory: The players take turns in coloring still uncolored edges of a graph G, each player being assigned a distinct color, choosing one edge per move. In avoidance games, completing a monochromatic subgraph isomorphic to another graph A leads to immedi- ate defeat or is forbidden and the first player that cannot move loses. In the avoidance+ variants, both players are free to choose more than one edge per move. In achievement games, the first player that completes a monochromatic subgraph isomorphic to A wins. Erd˝os & Selfridge [16] were the first to identify some tractable subcases of these games, followed by a large number of further studies. We complete these investigations by settling the complexity of all unrestricted cases: We prove that general graph Ramsey avoidance, avoidance+, and achievement games and several variants thereof are PSPACE-complete. We ultra-strongly solve some nontrivial instances of graph Ramsey avoidance games that are based on symmetric binary Ramsey numbers and provide strong evidence that all other cases based on symmetric binary Ramsey numbers are effectively intractable.
    [Show full text]
  • From Incan Gold to Dominion: Unraveling Optimal Strategies in Unsolved Games
    From Incan Gold to Dominion: Unraveling Optimal Strategies in Unsolved Games A Senior Comprehensive Paper presented to the Faculty of Carleton College Department of Mathematics Tommy Occhipinti, Advisor by Grace Jaffe Tyler Mahony Lucinda Robinson March 5, 2014 Acknowledgments We would like to thank our advisor, Tommy Occhipinti, for constant technical help, brainstorming, and moral support. We would also like to thank Tristan Occhipinti for providing the software that allowed us to run our simulations, Miles Ott for helping us with statistics, Mike Tie for continual technical support, Andrew Gainer-Dewar for providing the LaTeX templates, and Harold Jaffe for proofreading. Finally, we would like to express our gratitude to the entire math department for everything they have done for us over the past four years. iii Abstract While some games have inherent optimal strategies, strategies that will win no matter how the opponent plays, perhaps more interesting are those that do not possess an objective best strategy. In this paper, we examine three such games: the iterated prisoner’s dilemma, Incan Gold, and Dominion. Through computer simulations, we attempted to develop strategies for each game that could win most of the time, though not necessarily all of the time. We strived to create strategies that had a large breadth of success; that is, facing most common strategies of each game, ours would emerge on top. We begin with an analysis of the iterated prisoner’s dilemma, running an Axelrod-style tournament to determine the balance of characteristics of winning strategies. Next, we turn our attention to Incan Gold, where we examine the ramifications of different styles of decision making, hoping to enhance an already powerful strategy.
    [Show full text]
  • Math-GAMES IO1 EN.Pdf
    Math-GAMES Compendium GAMES AND MATHEMATICS IN EDUCATION FOR ADULTS COMPENDIUMS, GUIDELINES AND COURSES FOR NUMERACY LEARNING METHODS BASED ON GAMES ENGLISH ERASMUS+ PROJECT NO.: 2015-1-DE02-KA204-002260 2015 - 2018 www.math-games.eu ISBN 978-3-89697-800-4 1 The complete output of the project Math GAMES consists of the here present Compendium and a Guidebook, a Teacher Training Course and Seminar and an Evaluation Report, mostly translated into nine European languages. You can download all from the website www.math-games.eu ©2018 Erasmus+ Math-GAMES Project No. 2015-1-DE02-KA204-002260 Disclaimer: "The European Commission support for the production of this publication does not constitute an endorsement of the contents which reflects the views only of the authors, and the Commission cannot be held responsible for any use which may be made of the information contained therein." This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. ISBN 978-3-89697-800-4 2 PRELIMINARY REMARKS CONTRIBUTION FOR THE PREPARATION OF THIS COMPENDIUM The Guidebook is the outcome of the collaborative work of all the Partners for the development of the European Erasmus+ Math-GAMES Project, namely the following: 1. Volkshochschule Schrobenhausen e. V., Co-ordinating Organization, Germany (Roland Schneidt, Christl Schneidt, Heinrich Hausknecht, Benno Bickel, Renate Ament, Inge Spielberger, Jill Franz, Siegfried Franz), reponsible for the elaboration of the games 1.1 to 1.8 and 10.1. to 10.3 2. KRUG Art Movement, Kardzhali, Bulgaria (Radost Nikolaeva-Cohen, Galina Dimova, Deyana Kostova, Ivana Gacheva, Emil Robert), reponsible for the elaboration of the games 2.1 to 2.3 3.
    [Show full text]
  • The Pgsolver Collection of Parity Game Solvers
    Report The PGSolver Collection of Parity Game Solvers Version 3 Oliver Friedmann Martin Lange Institut f¨urInformatik Ludwig-Maximilians-Universit¨atM¨unchen, Germany March 5, 2014 1 1 5 5 8 5 1 7 2 0 Contents 1 Introduction 3 1.1 The Importance of Parity Games . .3 1.2 Aim and Content of PGSolver .......................3 1.3 Structure of this Report . .4 2 Solving Parity Games 6 2.1 Technicalities . .6 2.1.1 Parity Games . .6 2.1.2 Dominions . .8 2.1.3 Attractors and Attractor Strategies . .8 2.2 Local vs. Global Solvers . .8 2.3 Verifying Strategies . 10 2.4 Universal Optimisations . 10 2.4.1 SCC Decomposition . 10 2.4.2 Detection of Special Cases . 11 2.4.3 Priority Compression . 12 2.4.4 Priority Propagation . 13 2.5 The Generic Solver . 13 2.6 Implemented Algorithms . 14 2.6.1 The Recursive Algorithm . 14 2.6.2 The Local Model Checking Algorithm . 15 2.6.3 The Strategy Improvement Algorithm . 16 2.6.4 The Optimal Strategy Improvement Method . 16 2.6.5 The Strategy Improvement by Reduction to Discounted Payoff Games . 17 2.6.6 Probabilistic Strategy Improvement . 17 2.6.7 Probabilistic Strategy Improvement 2 . 17 2.6.8 Local Strategy Improvement . 18 2.6.9 The Small Progress Measures Algorithm . 18 2.6.10 The Small Progress Measures Reduction to SAT . 19 2.6.11 The Direct Reduction to SAT . 20 2.6.12 The Dominion Decomposition Algorithm . 20 2.6.13 The Big-Step Algorithm . 20 2.7 Implemented Heuristics .
    [Show full text]
  • Introduction to Computing at SIO: Notes for Fall Class, 2018
    Introduction to Computing at SIO: Notes for Fall class, 2018 Peter Shearer Scripps Institution of Oceanography University of California, San Diego September 24, 2018 ii Contents 1 Introduction 1 1.1 Scientific Computing at SIO . .2 1.1.1 Hardware . .2 1.1.2 Software . .2 1.2 Why you should learn a \real" language . .3 1.3 Learning to program . .4 1.4 FORTRAN vs. C . .5 1.5 Python . .6 2 UNIX introduction 7 2.1 Getting started . .7 2.2 Basic commands . .9 2.3 Files and editing . 12 2.4 Basic commands, continued . 14 2.4.1 Wildcards . 15 2.4.2 The .bashrc and .bash profile files . 16 2.5 Scripts . 18 2.6 File transfer and compression . 21 2.6.1 FTP command . 21 2.6.2 File compression . 22 2.6.3 Using the tar command . 23 2.6.4 Remote logins and job control . 24 2.7 Miscellaneous commands . 26 2.7.1 Common sense . 28 2.8 Advanced UNIX . 28 2.8.1 Some sed and awk examples . 30 2.9 Example of UNIX script to process data . 31 2.10 Common UNIX command summary . 35 3 A GMT Tutorial 37 3.0.1 Setting default values . 52 4 LaTeX 53 4.1 A simple example . 54 4.2 Example with equations . 55 4.3 Changing the default parameters . 57 4.3.1 Font size . 57 4.3.2 Font attributes . 57 4.3.3 Line spacing . 58 iii iv CONTENTS 4.4 Including graphics . 59 4.5 Want to know more? .
    [Show full text]
  • Mechanical Tic-Tac-Toe Board
    Mechanical Tic-Tac-Toe Board A Major Qualifying Project Report submitted to the Faculty of the WORCESTER POLYTECHNIC INSTITUTE in partial fulfilment of the requirements for the Degree of Bachelor of Science. By: Shane Bell Timothy Bill Abigail McAdams Taylor Teed Spring 2018 Submitted to: Professor Robert Daniello Mechanical Engineering Department 1 Abstract The goal of this MQP was to design, test and build a fully mechanical computer capable of playing tic-tac-toe against a human being. There is no question that modern computers could solve this problem more efficiently. However, our team aims to prove that old school technology still has a place in society today. Our design includes numerous methods of mechanical motion that are found in many designs today such as an escapement, gears, racks and pinions, and hydraulics. The machine was built almost entirely in the Higgins machine shop, except for a couple parts that were either cut with a water-jet or purchased. Our design uses an indexing module to detect position and data stored on a physical punch card to produce the best strategic answer. If the user makes the first move, the computer will never lose, only win or tie. 2 Acknowledgements Our group would like that thank our advisor Robert Daniello for his guidance and support throughout the duration of our project, Thomas Kouttron and Michael Cooke for their positive attitudes and constant aid in manufacturing, and Dane Kouttron for allowing access to machines not available within WPI facilities. We would also like to thank James Loiselle, Ian Anderson, Karl Ehlers, and Cam Collins for their good hearted aid, teaching our team the ins and outs of computer aided manufacturing and helping to figure out machining problems that we could not.
    [Show full text]
  • Learning Based Game Playing Agents for Abstract Board Games with Increasing State-Space Complexity
    ABSTRACT ANALYSIS OF Q- LEARNING BASED GAME PLAYING AGENTS FOR ABSTRACT BOARD GAMES WITH INCREASING STATE-SPACE COMPLEXITY by Indrima Upadhyay This thesis investigates Q-learning agents in a Reinforcement Learning framework for abstract board games. The two key contributions are: exploring the training of Q-learning agents, and a methodology to evaluate different agents playing abstract games. We focus on - Tic-Tac-Toe, Nine-Men’s Morris, and Mancala, noting that each of these games is solved. To train our Q-agent, we test the impact of a teaching agent (Q-learning twin, deterministic Min-Max, and a non-deterministic Min-Max) based on the number of training epochs needed until an agent converges. We find that a deterministic Min-Max is the best teaching agent, but a Q- learning twin allows us to converge without needing a pre-existing agent. In training, we include a methodology to create weaker agents for entertainment purposes. To evaluate a range of competitive agents, we provide a methodology and conduct a round- robin tournament. We find that a deterministic Min-Max agent scores maximum points for all three games, the Q-learning based agent places second for both Tic-Tac-Toe and Nine Men’s Morris, and a non-deterministic Min-Max places second for Mancala. From these two contributions we summarize our conclusions and provide discussion on these results and provide insight on how this space might be further investigated. ANALYSIS OF Q- LEARNING BASED GAME PLAYING AGENTS FOR ABSTRACT BOARD GAMES WITH INCREASING STATE-SPACE COMPLEXITY A Thesis Submitted to the Faculty of Miami University in partial fulfillment of the requirements for the degree of Master of Science by Indrima Upadhyay Miami University Oxford, Ohio 2021 Advisor: Dr.
    [Show full text]
  • Measuring the Solution Strength of Learning Agents in Adversarial Perfect Information Games
    Measuring the Solution Strength of Learning Agents in Adversarial Perfect Information Games Zaheen Farraz Ahmad, Nathan Sturtevant, Michael Bowling Department of Computing Science University of Alberta, Amii Edmonton, AB fzfahmad, nathanst, [email protected] Abstract were all evaluated against humans and demonstrated strate- gic capabilities that surpassed even top-level professional Self-play reinforcement learning has given rise to capable human players. game-playing agents in a number of complex domains such A commonly used method to evaluate the performance of as Go and Chess. These players were evaluated against other agents in two-player games is to have the agents play against state-of-the-art agents and professional human players and have demonstrated competence surpassing these opponents. other agents with theoretical guarantees of performance, or But does strong competition performance also mean the humans in a number of one-on-one games and then mea- agents can (weakly or strongly) solve the game? Or even suring the proportions of wins and losses. The agent which approximately solve the game? No existing work has con- wins the most games against the others is said to be the more sidered this question. We propose aligning our evaluation of capable agent. However, this metric only provides a loose self-play agents with metrics of strong/weakly solving strate- ranking among the agents — it does not provide a quantita- gies to provide a measure of an agent’s strength. Using small tive measure of the actual strength of the agents or how well games, we establish methodology on measuring the strength they generalize to their respective domains.
    [Show full text]
  • COMBINATORIAL GAME THEORY in CLOBBER Jeroen Claessen
    COMBINATORIAL GAME THEORY IN CLOBBER Jeroen Claessen Master Thesis DKE 11-06 Thesis submitted in partial fulfilment of the requirements for the degree of Master of Science of Artificial Intelligence at the Faculty of Humanities and Sciences of Maastricht University Thesis committee: Dr. M.H.M. Winands Dr. ir. J.W.H.M. Uiterwijk J.A.M. Nijssen, M.Sc. Maastricht University Department of Knowledge Engineering Maastricht, The Netherlands July 2011 Preface This master thesis was written at the Department of Knowledge Engineering at Maastricht University. In this thesis I investigate the application of combinatorial game theory in the game Clobber, and its incorporation in a Monte-Carlo Tree Search based Clobber player, with the aim of improving its perfor- mance. I would like to thank the following people for making this thesis possible. Most importantly, I would like to express my gratitude to my supervisor Dr. Mark Winands for his guidance during the past months. He has supplied me with many ideas and has taken the time to read and correct this thesis every week. Further, I would like to thank the other committee members for assessing this thesis. Finally, I would like to thank my family and friends for supporting me while I was writing this thesis. Jeroen Claessen Limbricht, June 2011 Abstract The past couple of decades classic board games have received much attention in the field of Artificial Intelligence. Recently, increasingly more research has been done on modern board games, because of the more complicated nature of these games. They are often non-deterministic games with imperfect information, that can be played by more than two players, which leads to new challenges.
    [Show full text]