FUEGO—An Open-Source Framework for Board Games and Go Engine Based on Monte Carlo Tree Search Markus Enzenberger, Martin Müller, Broderick Arneson, and Richard Segal

FUEGO—An Open-Source Framework for Board Games and Go Engine Based on Monte Carlo Tree Search Markus Enzenberger, Martin Müller, Broderick Arneson, and Richard Segal

IEEE TRANSACTIONS ON COMPUTATIONAL INTELLIGENCE AND AI IN GAMES, VOL. 2, NO. 4, DECEMBER 2010 259 FUEGO—An Open-Source Framework for Board Games and Go Engine Based on Monte Carlo Tree Search Markus Enzenberger, Martin Müller, Broderick Arneson, and Richard Segal Abstract—FUEGO is both an open-source software framework with new algorithms that would not be possible otherwise be- and a state-of-the-art program that plays the game of Go. The cause of the cost of implementing a complete state-of-the-art framework supports developing game engines for full-information system. Successful previous examples show the importance of two-player board games, and is used successfully in a substantial open-source software: GNU GO [19] provided the first open- number of projects. The FUEGO Go program became the first program to win a game against a top professional player in 9 9 source Go program with a strength approaching that of the best Go. It has won a number of strong tournaments against other classical programs. It has had a huge impact, attracting dozens programs, and is competitive for 19 19 as well. This paper gives of researchers and hundreds of hobbyists. In Chess, programs an overview of the development and current state of the UEGO F such as GNU CHESS,CRAFTY, and FRUIT have popularized in- project. It describes the reusable components of the software framework and specific algorithms used in the Go engine. novative ideas and provided reference implementations. To give one more example, in the field of domain-independent planning, Index Terms—Computer game playing, Computer Go, FUEGO, systems with publicly available source code such as Hoffmann’s man-machine matches, Monte Carlo tree search, open source soft- ware, software frameworks. FF [20] have had a similarly massive impact, and have enabled much follow-up research. FUEGO contains a game-independent, state-of-the-art im- I. INTRODUCTION plementation of MCTS with many standard enhancements. It implements a coherent design, consistent with software engi- ESEARCH in computing science is driven by the inter- neering best practices. Advanced features include a lock-free play of theory and practice. Advances in theory, such R shared memory architecture, and a flexible and general plug-in as Monte Carlo tree search (MCTS) and the upper confidence architecture for adding domain-specific knowledge in the game bounds applied to trees (UCT) algorithm [1], [2], have led to tree. The FUEGO framework has been proven in applications to breakthrough performance in Computer Go, as pioneered by Go, Hex, Havannah, and Amazons. the programs CRAZY STONE [1] and MOGO [3], [4]. In turn, at- The main innovation of the overall FUEGO framework may tempts to improve the playing strength of these programs have lie not in the novelty of any of its specific methods and algo- led to improved algorithms, such as RAVE and prior knowl- rithms, but in the fact that for the first time, a state-of-the-art edge initialization [5]. Another crucial advance has been the implementation of these methods is made available freely to the development of parallel MCTS algorithms, both for shared and public in form of a consistent, well-designed, tested, and main- distributed memory architectures [6]–[8]. Recently, the scope tained open-source software. of MCTS methods has greatly expanded to include many other Among comparable systems, only an executable is available games [9]–[13] as well as a number of interesting single-agent for MOGO [3], [21] and for commercial programs such as THE applications [14]–[17] and multiplayer games [18]. MANY FACES OF GO,ZEN, and KCC IGO. The reference MCTS FUEGO is an open-source software framework for developing implementations by Dailey [22] and Boon provide a very useful game engines for full-information two-player board games, as starting point, but are far from a competitive system. Similarly, well as a state-of-the-art Go program. Open-source software Lew’s LIBEGO [23] provides an extremely fast but limited im- can facilitate and accelerate research. It lowers the overhead of plementation of MCTS. Recent versions of GNU GO [19] con- getting started with research in a field, and allows experiments tain a hybrid system adding Monte Carlo search to GNU GO. However, it is several hundred Elo rating points weaker than Manuscript received April 14, 2010; revised June 28, 2010; accepted state-of-the-art programs. Baudis’ PACHI [24] is a strong and September 21, 2010. Date of publication October 14, 2010; date of current version January 19, 2011. This work was supported by the Defense Advanced relatively new open-source MCTS Go program. All these pro- Research Projects Agency (DARPA), iCORE, the Natural Sciences and Engi- grams are specialized to play the game of Go. neering Research Council of Canada (NSERC), IBM, and Jonathan Schaeffer. M. Enzenberger is an independent software developer. M. Müller and B. Arneson are with the Department of Computing Science, A. Why Focus on MCTS and on Go? University of Alberta, Edmonton, AB T6G 2E8 Canada (e-mail: mmueller@cs. ualberta.ca). Research in computer Go has been revolutionized by MCTS R. Segal is with IBM T. J. Watson Research Center, Hawthorne, NY 10532 methods, and has seen more progress within the last four years USA. than in the two decades before. Programs are close to perfection Color versions of one or more of the figures in this paper are available online at http://ieeexplore.ieee.org. on 7 7 and have reached top human level on the 9 9 board. Digital Object Identifier 10.1109/TCIAIG.2010.2083662 In August 2009, FUEGO became the first program to win an even 1943-068X/$26.00 © 2010 IEEE 260 IEEE TRANSACTIONS ON COMPUTATIONAL INTELLIGENCE AND AI IN GAMES, VOL. 2, NO. 4, DECEMBER 2010 game against a top-level 9 Dan professional player on 9 9. See Section IV-A for details. MOGO,CRAZY STONE, and THE MANY FACES OF GO have also achieved a number of successes against professional players on 9 9. On 19 19, programs are still much weaker than top hu- mans, but they have achieved some success with handicaps of 6–9 stones [25]. The top programs ZEN,THE MANY FACES OF GO, and AYA have reached amateur Dan (master) level on 19 19. Many MCTS programs have surpassed the strength of all classical programs. In a four-stone handicap game shown in Section IV-A, FUEGO was able to score a lucky win against a strong 6 Dan amateur. MCTS has greatly improved the state-of-the-art in general game playing (GGP). The first MCTS program, CADIAPLAYER by Finnsson and Björnsson, won both the 2007 and 2008 Asso- ciation for the Advancement of Artificial Intelligence (AAAI) competitions [9]. MCTS has now been adopted by all strong Fig. 1. Libraries and applications of FUEGO. GGP programs. The MCTS approach is being intensely investigated in sev- B. Technical Description and Requirements eral other games as well. Recent games programming confer- ences are dominated by papers on MCTS and applications. In This paper describes version 0.4.1 of FUEGO. File downloads the games of Amazons and Hex, MCTS-based programs have and access to the version control system are available at the surpassed the strength of classical approaches [10], [11]. At the SourceForge public open-source hosting service [32]. FUEGO is 2008 13th International Computer Games Championship in Bei- distributed under the terms of the GNU Lesser General Public License [33], version 3 or newer. jing, China, the MCTS-based Amazons program INVADER won a close match against the five time defending champion, the clas- FUEGO is a software framework. In contrast to a small library with limited functionality and a stable application programming sical alpha–beta searcher 8 QUEENS PROBLEM, and convincingly defended its title in Pamplona the following year. In Hex, the interface (API), FUEGO provides a large number of classes and functions. The API is not stable between major releases. Porting current champion MOHEX, built upon FUEGO’s MCTS imple- applications that depend on the FUEGO libraries to a new major mentation, remained unbeaten in Pamplona 2009 [12] after fin- release can be a significant effort. For each major release a stable ishing in second place in Beijing 2008 [11]. The recently pop- branch is created, which is used for applying critical bug fixes ular game of Havannah is another success story for MCTS [13]. that do not break the API, and can be used by applications that In games where alpha–beta works very well there is naturally do not want or need to follow new developments in the main less interest in new techniques. A paper on MCTS in Shogi has branch. The code is divided into five libraries, and uses a largely won the best paper award at the yearly workshop on game pro- consistent coding style. Fig. 1 shows the dependency graph of gramming in Japan, the 2008 Game Playing Workshop (GPW) the libraries and applications. [26]. An MCTS analysis option is provided in the top Chess pro- The code is written in C++ with portability in mind. Apart gram Rybka [27]. from the standard C++ library, it uses selected parts of the Boost libraries [34], which are available for a large number of plat- forms. The required version of Boost is 1.33.1 or newer. FUEGO II. THE FUEGO SOFTWARE FRAMEWORK compiles successfully with recent versions of gcc, from 4.1.2 up. Older versions of gcc will probably work but have not been A. History tested. Platform-dependent functionality, such as time measure- FUEGO builds on two previous projects: Kierulf’s SMART ment or process creation, is encapsulated in classes of the GAME BOARD [28], [29] and Müller’s EXPLORER [30], [31].

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    12 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us