Non-Linear Monte-Carlo Search in Civilization II S.R.K

Total Page:16

File Type:pdf, Size:1020Kb

Non-Linear Monte-Carlo Search in Civilization II S.R.K Non-Linear Monte-Carlo Search in Civilization II S.R.K. Branavan David Silver * Regina Barzilay Computer Science and Artificial Intelligence Laboratory * Department of Computer Science Massachusetts Institute of Technology University College London fbranavan, [email protected] [email protected] Abstract Several factors influence a city's production of shields: the terrain within your city radius is most important. This paper presents a new Monte-Carlo search al- You might find it worthwhile to set Settlers to improving gorithm for very large sequential decision-making the terrain squares within your city radius. problems. We apply non-linear regression within Beyond terrain , the form of government your civilization Monte-Carlo search, online, to estimate a state- chooses can cause each city to spend some of its raw action value function from the outcomes of ran- materials as maintenance dom roll-outs. This value function generalizes be- tween related states and actions, and can therefore Figure 1: An extract from the game manual of Civilization II. provide more accurate evaluations after fewer roll- outs. A further significant advantage of this ap- A common approach to value generalization is value func- proach is its ability to automatically extract and tion approximation (VFA), in which the values of all states leverage domain knowledge from external sources and actions are approximated using a smaller number of pa- such as game manuals. We apply our algorithm rameters. Monte-Carlo search can use VFA to estimate state to the game of Civilization II, a challenging multi- and action values from the roll-out scores. For instance, lin- agent strategy game with an enormous state space ear Monte-Carlo search [Silver et al., 2008] uses linear VFA: and around 1021 joint actions. We approximate the it approximates the value function by a linear combination of value function by a neural network, augmented by state features and weights. linguistic knowledge that is extracted automatically In this paper, we investigate the use of Non-linear VFA from the official game manual. We show that this within Monte-Carlo search to provide a richer and more com- non-linear value function is significantly more ef- pact representation of value. This value approximation re- ficient than a linear value function, which is itself sults in better generalization between related game states and more efficient than Monte-Carlo tree search. Our actions, thus providing accurate evaluations after fewer roll- non-linear Monte-Carlo search wins over 78% of outs. We apply non-linear VFA locally in time, to fit an ap- games against the built-in AI of Civilization II. 1 proximate value function to the scores from the current set of roll-outs. These roll-outs are all generated from the current state, i.e., they are samples from the sub game starting from 1 Introduction now. The key features of our method are: • Fitting Non-Linear VFA to local game context Pre- Monte-Carlo search is a simulation-based search paradigm vious applications of non-linear VFA [Tesauro, 1994] that has been successfully applied to complex games such as estimated a global approximation of the value function. Go, Poker, Scrabble, multi-player card games, and real-time While effective for games with relatively small state [ et al. strategy games, among others Gelly , 2006; Tesauro spaces and smooth value functions, this approach has so et al. and Galperin, 1996; Billings , 1999; Sheppard, 2002; far not been successful in larger, more complex games, ] Schafer,¨ 2008; Sturtevant, 2008; Balla and Fern, 2009 . In such as Go or Civilization II. Non-linear VFA, applied this framework, the values of game states and actions are globally, does not provide a sufficiently accurate repre- roll-outs estimated by the mean outcome of , i.e., simulated sentation in these domains. In contrast, the local value games. These values are used to guide the selection of the function which focuses solely on the dynamics of the best action. However, in complex games such as Civiliza- current subgame, which may be quite specialized, can be tion II, the extremely large action space makes simple Monte- considerably easier to approximate than the full global Carlo search impractical, as prohibitively many roll-outs are value function which models the entire game. needed to determine the best action. To achieve good perfor- mance in such domains, it is crucial to generalize from the • Leveraging domain knowledge automatically ex- outcome of roll-outs to the values of other states and actions. tracted from text Game manuals and other textual re- sources provide valuable sources of information for se- 1The code and data for this work are available from lecting a game strategy. An example of such advice is http://groups.csail.mit.edu/rbg/code/civ/ shown in Figure 1. For instance, the system may learn that the action irrigate-land should be selected if the Firstly, due to its greater representational power, it general- words “improve terrain” are present in text. However, izes better from small numbers of roll-outs. This is partic- the challenge in using such information is in identify- ularly important in complex games, such as Civilization II, ing which segments of text are relevant for the current in which simulation is computationally intensive, severely game context; for example, the system needs to identify limiting the number of roll-outs. Secondly, non-linear VFA the second sentence in Figure 1 as advice pertinent to allows for multi-layered representations, such as neural net- the irrigation action. These decisions can be effectively works, which can automatically learn features of the game modeled via hidden variables in a non-linear VFA. state. Furthermore, we show that a multi-layered, non-linear We model our non-linear VFA using a four-layer neural VFA can automatically incorporate domain knowledge from network, and estimate its parameters via reinforcement learn- natural language documents, so as to produce better features ing within the Monte-Carlo search framework. The first layer of the game state, and therefore a better value function and of this network represents features of the game state, action, better overall performance. and the game manual. The second layer represents a linguis- A number of other approaches have previously been ap- tic model of the game manual, which encodes sentence rele- plied to turn-based strategy games [Amato and Shani, 2010; vance and the predicate structure of sentences. The third layer Wender and Watson, 2008; Bergsma and Spronck, 2008; corresponds to a set of fixed features which perform simple, Madeira et al., 2006; Balla and Fern, 2009]. However, given predefined transformations on the outputs of the first two lay- the enormous state and action space in most strategy games, ers. The fourth and final layer represents the value function. much of this previous work has focused on smaller, simplified During Monte-Carlo search, the roll-out scores are used to or limited components of the game. For example, Amato and train the entire value function online, including the linguis- Shani [2010] use reinforcement learning to dynamically se- tic model. The weights of the neural network are updated by lect between two hard-coded strategies in the game Civiliza- error backpropagation, so as to minimize the mean squared tion IV. Wender and Watson [2008] focus on city building in error between the value function (the network output) and the Civilization IV. Madeira et al. [2006] address only the com- roll-out scores. bat aspect of strategy games, learning high-level strategies, We apply our technique to Civilization II, a notoriously and using hard-coded algorithms for low-level control. Balla large and challenging game.2 It is a cooperative, multi-agent and Fern [2009] apply Monte-Carlo tree search with some decision-making problem with around 1021 joint actions and success, but focus only on a tactical assault planning task. In an enormous state space of over 10188 states.3 To make the contrast to such previous work, our algorithm learns to con- game tractable, we assume that actions of agents are indepen- trol all aspects of the game Civilization II, and significantly dent of each other given the game state. We use the official outperforms the hand-engineered, built-in AI player. game manual as a source of domain knowledge in natural lan- guage form, and demonstrate a significant boost to the perfor- 3 Background mance of our non-linear Monte-Carlo search. In full-length games, our method wins over 78% of games against the built- Our task is to play and win a strategy game against a given in, hand-crafted AI of Civilization II. opponent. Formally, we represent the game as a Markov De- cision Process (MDP) hS; A; T; Ri, where S is the set of pos- 2 Related Work sible states and A is the space of legal actions. Each state s 2 S represents a complete configuration of the game world, Monte-Carlo search has previously been combined with including attributes such as available resources and the loca- global non-linear VFA. The original TD-Gammon [Tesauro, tions of cities and units. Each action a 2 A represents a joint 1994] used a multilayer neural network that was trained from assignment of actions to each city and each unit. At each step games of self-play to approximate the value function. Tesauro of the game, the agent executes an action a in state s, which and Galperin [1996] subsequently used TD-Gammon’s neural changes the state to s0 according to the state transition distri- network to score the roll-outs in a simple Monte-Carlo search bution T (s0js; a). This distribution incorporates both the op- algorithm; however, the neural network was not adjusted on- ponent’s action selection policy, and the game rules.
Recommended publications
  • Civ 2 Pages 1-72 A5
    © 1999 Hasbro Interactive and MicroProse, Inc. All Rights Reserved. MICROPROSE, SID MEIER’S CIVILIZATION, and CIVILIZATION are U.S. registered trademarks and HASBRO INTERACTIVE, the HASBRO INTERACTIVE logo, CIVILIZATION II: TEST OF TIME, TEST OF TIME, LALANDE 21185, CIV, and related marks are trademarks of Hasbro or its affiliates. MicroProse is a subsidiary of Hasbro. The MSN GAMING ZONE is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Hasbro and its affiliates disclaim any responsibility or liability for any content on or available through the MSN Gaming Zone, an independent gaming service run by Microsoft Corp. All other trademarks are the property of their respective holders. ii You can’t start playing until you install the game. Here’s how. REQUIREMENTS Before you can install Civilization II: Test of Time and start playing, check this list to make sure that your computer has everything you need: • The processor has to be a 166 MHz Pentium® or better. For best performance, we recommend at least a 200 MHz Pentium with MMX. • You must have at least 16 Mb (megabytes) of RAM. (If you’re running Windows 95, it’s a safe bet you have 16 Mb or more.) For best performance, we recommend 32 Mb or more. • You must have at least 16 MB (megabytes) of RAM. (If you’re running Windows 95 or 98, it’s a safe bet you have 16 MB or more.) For best performance, we recommend 32 MB or more. • You must have a 4x speed (or faster) CD-ROM drive.
    [Show full text]
  • Helpfile for Freeciv ; ; Each [Help *] Is a Help Node
    ; Helpfile for Freeciv ; ; Each [help_*] is a help node. ; ; 'name' = name of node as shown in help browser; the number of leading ; spaces in 'name' indicates nesting level for display. ; ; 'text' = the helptext for this node; can be an array of text, which ; are then treated as paragraphs. (Rationale: easier to update ; translations on paragraph level.) ; ; 'generate' = means replace this node with generated list of game ; elements; current categories are: ; "Units", "Improvements", "Wonders", "Techs", ; "Terrain", "Governments" ; ; Within the text, the help engine recognizes a few "generated table"s. ; These are generated by the help engine, and inserted at the point of ; reference. They are referenced by placing a $ in the first column ; of a separate paragraph, followed immediately with the name of the ; generated table. See the code in helpdlg.c for the names of tables w ; hich can be referenced. ; ; This file no longer has a max line length: strings are wrapped ; internally. However to do nonwrapping formatting, make sure to ; insert hard newlines "\n" such that lines are less than 68 chars ; long. ; This marks 68 char limit > ; ; Notice not all entries are marked for i18n, as some are not ; appropriate to translate. ; ; Comments with cstyle comments are just to stop xgettext from ; complaining about stray singlequote characters. [help_about] name = _("About") text = _("\ Freeciv is a turnbased strategy game, in which each player becomes \ the leader of a civilization, fighting to obtain the ultimate goal: \ the extinction of all other civilizations.\ "), _("\ Original authors:\n\ (they are no longer involved, please don't mail them!)\ "), "\ Allan Ove Kjeldbjerg [email protected]\n\ Claus Leth Gregersen [email protected]\n\ Peter Joachim Unold [email protected]\ ", _("\ Present administrators: \ "), "\ Marko Lindqvist [email protected]\n\ R.
    [Show full text]
  • Investigating the Effect of Pace Mechanic on Player Motivation And
    Investigating the Effect of Pace Mechanic on Player Motivation and Experience by Hala Anwar A thesis presented to the University of Waterloo in fulfillment of the thesis requirement for the degree of Master of Applied Science (MASc) in Management Sciences Waterloo, Ontario, Canada, 2016 © Hala Anwar 2016 AUTHOR'S DECLARATION I hereby declare that I am the sole author of this thesis. This is a true copy of the thesis, including any required final revisions, as accepted by my examiners. I understand that my thesis may be made electronically available to the public. Hala Anwar ii Abstract Games have long been employed to motivate people towards positive behavioral change. Numerous studies, for example, have found people who were previously disinterested in a task can be enticed to spend hours gathering information, developing strategies, and solving complex problems through video games. While the effect of factors such as generational influence or genre appeal have previously been researched extensively in serious games, an aspect in the design of games that remains unexplored through scientific inquiry is the pace mechanic—how time passes in a game. Time could be continuous as in the real world (real-time) or it could be segmented into phases (turn- based). Pace mechanic is fiercely debated by many strategy game fans, where real-time games are widely considered to be more engaging, and the slower pace of turn-based games has been attributed to the development of mastery. In this thesis, I present the results of an exploratory mixed-methods user study to evaluate whether pace mechanic and type of game alter the player experience and are contributing factors to how quickly participants feel competent at a game.
    [Show full text]
  • Release Notes for Fedora 15
    Fedora 15 Release Notes Release Notes for Fedora 15 Edited by The Fedora Docs Team Copyright © 2011 Red Hat, Inc. and others. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. The original authors of this document, and Red Hat, designate the Fedora Project as the "Attribution Party" for purposes of CC-BY-SA. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. For guidelines on the permitted uses of the Fedora trademarks, refer to https:// fedoraproject.org/wiki/Legal:Trademark_guidelines. Linux® is the registered trademark of Linus Torvalds in the United States and other countries. Java® is a registered trademark of Oracle and/or its affiliates. XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries. All other trademarks are the property of their respective owners.
    [Show full text]
  • Descargar Un Splash De Begins Para El GRUB
    07 FEB / 07 La Revista de Software Libre y Código Abierto EN ESTA EDICIÓN - Entrevista a Federico Mena - Joomla! o Drupal? (Primera parte) - Procedimiento de respaldo, envío y recuperación de bases de datos MySQL a través de la consola de comandos en Linux. - Gobby, una nueva forma colaborativa de trabajar en tus textos. - QEMU, emulando un OLPC. - Domando al escritor Openoffice.org Writer. PROGRAMACIÓN El entorno de desarrollo MAEMO para Nokia 770 (Segunda parte) TALLER DISTRIBUCIONES CUPS: Instalando una ¡Linux está vivo! impresora Epson en Linux. Una revisión a las distros Live-CD más conocidas. Además: Ojo del novato - Zona de Enlaces – Eventos – Y mucho más... Editorial Comienza el 2007 y Begins cuenta con un nuevo refuerzo que se integra al equipo para continuar aportando pero ahora de una manera más estrecha. Bienvenido Eric Báez, seguro que la comunidad Linux ha ganado mucho contigo tomando decisiones desde dentro de la publicación. Redacción Rosana Cáceres [email protected] Juan P. Torres H. [email protected] Este año se viene una intensa competencia en lo que a sistemas Ricardo Gabriel Berlasso [email protected] Alberto Rivera [email protected] operativos se trata, con la entrada de MacOS en la plataforma Intel, Rodrigo Ramírez [email protected] Óscar Calle [email protected] ahora son varios más los rivales para el sistema de Redmond. Por Dionisio Fernández [email protected] Alex Sandoval [email protected] un lado tenemos a Windows Vista, que con sus requerimientos de Staff Begins [email protected] hardware, es muy probable que algo de terreno pierda, oportunidad que será aprovechada por el resto de los jugadores.
    [Show full text]
  • Non-Linear Monte-Carlo Search in Civilization II
    Non-Linear Monte-Carlo Search in Civilization II The MIT Faculty has made this article openly available. Please share how this access benefits you. Your story matters. Citation Branavan, S. R. K. David Silver, and Regina Barzilay. "Non-Linear Monte-Carlo Search in Civilization II." in Proceedings of the Twenty- Second International Joint Conference on Artificial Intelligence, Barcelona, Catalonia, Spain, 16–22 July 2011. p.2404. As Published http://ijcai-11.iiia.csic.es/program/paper/1252 Publisher AAAI Press/International Joint Conferences on Artificial Intelligence Version Author's final manuscript Citable link http://hdl.handle.net/1721.1/74248 Terms of Use Creative Commons Attribution-Noncommercial-Share Alike 3.0 Detailed Terms http://creativecommons.org/licenses/by-nc-sa/3.0/ Non-Linear Monte-Carlo Search in Civilization II S.R.K. Branavan David Silver * Regina Barzilay Computer Science and Artificial Intelligence Laboratory * Department of Computer Science Massachusetts Institute of Technology University College London fbranavan, [email protected] [email protected] Abstract Several factors influence a city's production of shields: the terrain within your city radius is most important. This paper presents a new Monte-Carlo search al- You might find it worthwhile to set Settlers to improving gorithm for very large sequential decision-making the terrain squares within your city radius. problems. We apply non-linear regression within Beyond terrain , the form of government your civilization Monte-Carlo search, online, to estimate a state- chooses can cause each city to spend some of its raw action value function from the outcomes of ran- materials as maintenance dom roll-outs.
    [Show full text]
  • Civ 5 Android Apk
    Civ 5 android apk Continue Where's the modding kit? Modding SDK is available as a free download on Steam: Open Steam and select Library. Civilization free download - Laws of Civilization, Age of Forge: Civilization and Empire, Civilization Revolution 2, and many other programs. November 05, 2019 There are developers who build some mods for this game and release it online where we can download and enjoy the benefits of mods. READ ALSO: 7 best sleep tracking apps for Apple Watch 2019; An easy way to eradicate Vivo without a PC (all models) How to remove pop-up ads on Android, forever! (Without root) HOW TO BE IN CIVILIZATION 5. Download Game: Civilization 5 APK 1.1.0 (Latest version) - com.publishadventures.gqciv - Post Adventures. Learn more about your favorite game - guidebooks, secrets, Easter eggs and tactics. Civilization Sid Meyer VI Free download PC Game Multiplayer Full Repackaging Direct Download Links Squeezed Civilization By Sid Meyer 6 Free Android download. How to download gta 5 iso ppsspp game for Android in 78mb only for Android download now. Sid Meier's Civilization VI Game Overview: With almost every age and tribe, Civilization VI Side Meyer is indeed the flagship killer of Sid Meyer's video game trilogy. Being the sixth main installment of Sid.Civilization Download for PcExperience one of the greatest in turn strategy games of all time, The Civilization of Sid Meyer® V.———————————————————————————B E G I N W I T H 2 0 H I S T O R I C L L L E A D E R R S———————————————————————————Become Ruler of the world by creating and leading civilization since the dawn of man in the space age.
    [Show full text]
  • Course Syllabus
    RANGER COLLEGE COURSE SYLLABUS World Civilization II HIST 2322 3 credit hours INSTRUCTOR: Dr. Twila Johnson HIST 2322 INSTRUCTOR: Dr. Twila Johnson EMAIL: [email protected] OFFICE: online PHONE: 361-646- 9075 HOURS: may text or call between 7:30 am and 7:30 pm I. Texas Core Curriculum Statement of Purpose Through the Texas Core Curriculum, students will gain a foundation of knowledge of human cultures and the physical and natural world, develop principles of personal and social responsibility for living in a diverse world, and advance intellectual and practical skills that are essential for all learning. II. Course Description A survey of the social, political, economic, cultural, religious, and intellectual history of the world from the 15th century to the present. The course examines major cultural regions of the world in Africa, the Americas, Asia, Europe, and Oceania and their global interactions over time. Themes include maritime exploration and transoceanic empires, nation/state formation and industrialization, imperialism, global conflicts and resolutions, and global economic integration. The course emphasizes the development, interaction and impact of global exchange. III. Required Background or Prerequisite Successful completion of TSI. IV. Required Textbook and Course Materials Stearns, Adas, Schwartz, Gilbert World Civilizations: The Global Experience, Pearson Education, 2015, 7th edition. 2321: ISBN: 9781323864784 2322: ISBN: 9781323864807 V. Course Purpose To gain wider understanding of World History, Cultures, Politics, Religion, and Economies. Also, to gain larger understanding of human history, interactions, and movements before the modern era. 2 HIST 2322 VI. Learning Outcomes Upon successful completion of this course, students will: 1. Create an argument through the use of historical evidence.
    [Show full text]
  • D3D11 Software Tessellation
    D3D11 Software Tessellation John Kloetzli, Jr Graphics Programmer, Firaxis Games About Firaxis ● Founded in 1996 ● Strategy games! ● Sid Meier lead designer ● 20+ shipped games ● Civilization V ● XCOM: Enemy Unknown “Games that stand the test of time” About Me ● I work on the Civilization team ● Graphics programmer ● Over 7 years at Firaxis ● Procedural modeling ● Terrain rendering Civilization V ● Shipped Sept. 2010 ● One of the first DX11 games ● Variable-bitrate GPU texture decompression ● Hardware tessellation ● Two large expansions ● Gods & Kings ● Brave New World OLANO et al. Variable Bit Rate GPU Texture Decompression. In EGSR 2011 Civilization V ● Low-res Heightmap ● 64x64 per hex ● Procedurally generated ● Unique – no repeat ● High-res Materials ● 512x512 per hex ● Artist-created ● Repeats across the world Better Terrain ● Problem: Sharp features ● Low-res heightmap cannot display unique, high-res detail ● Solution: High-res heightmap ● More data (Compression? Streaming?) ● Efficient Tessellation GPU Displacement Tessellation Demo Simple procedural terrain... ● Ridges to test difficult case ● Assume strategy game camera (lots of pan/zoom) ● High res: 256x256 Heightmap per tile ● Large: 128x128 tiles (32,768x32,768 heightmap) ...all done on the GPU ● Heightmap/Normalmap created on demand ● Use texture arrays to implement megatexture ● Tessellation created on demand using GPU CPU GPU Resources Compute Visible Tiles Create Heightmap Height Build New Tiles Create Normalmap Normal Render Visible Cells Tessellation ? Shade Overview
    [Show full text]
  • Linux Games Page 1 of 7
    Linux Games Page 1 of 7 Linux Games INTRODUCTION such as the number of players and the size of the map, then you start the game. Once the game is running clients may Hello. My name is Andrew Howlett. I've been using Linux join the game. Clients connect to the game using TCP/IP, since 1997. In 2000 I cutover to Linux for all my projects, so it is very easy to play multi-player games over the except I dual-booted Windows to play games. I like to play Internet. Like many Free games, clients are available for computer games. About a year ago I stopped dual booting. many platforms, including Windows, Amiga and Now I play computer games under Linux. The games I Macintosh. So there are lots of players out there. If you play can be divided into four groups: Free Games, native don't want to play against other humans, then Freeciv linux commercial games, Windows Emulated games, and includes some nasty AIs. Win4Lin enabled games. This presentation will demonstrate games from each of these four groups. BZFlag Platform BZFlag is a tank combat game along the same lines as the old BattleZone game. Like FreeCiv, BZFlag uses a client/ Before I get started, a little bit about my setup so you can server architecture over TCP/IP networks. Unlike FreeCiv, relate this to whatever you are running. This is a P3 900 the game contains no AIs – you must play this game MHz machine. It has a Crystal Sound 4600 sound card and against other humans (? entities ?) over the Internet.
    [Show full text]
  • Freecol Documentation, User Guide for Version V0.11.6
    FreeCol Documentation User Guide for Version v0.11.6 The FreeCol Team December 30, 2019 2 Contents 1 Introduction7 1.1 About FreeCol..........................7 1.2 The Original Colonization....................7 1.3 About this manual........................9 1.3.1 Differences between the rule sets.............9 1.4 Liberty and Immigration..................... 11 2 Installation 13 2.1 System Requirements....................... 13 2.1.1 FreeCol on Windows................... 14 2.2 Compiling FreeCol........................ 14 3 Interface 15 3.1 Starting the game......................... 15 3.1.1 Command line options.................. 15 3.1.2 Game setup........................ 19 3.1.3 Map Generator Options................. 21 3.1.4 Game Options....................... 22 3.2 Client Options........................... 25 3.2.1 Display Options...................... 25 3.2.2 Translations........................ 26 3.2.3 Message Options..................... 27 3.2.4 Audio Options...................... 28 3.2.5 Savegame Options.................... 29 3.2.6 Warehouse Options.................... 29 3.2.7 Keyboard Accelerators.................. 29 3.2.8 Other Options....................... 29 3.3 The main screen.......................... 30 3 4 CONTENTS 3.3.1 The Menubar....................... 31 3.3.2 The Info Panel...................... 36 3.3.3 The Minimap....................... 36 3.3.4 The Unit Buttons..................... 36 3.3.5 The Compass Rose.................... 37 3.3.6 The Main Map...................... 37 3.4 The Europe Panel......................... 42 3.5 The Colony panel......................... 43 3.5.1 The Warehouse Dialog.................. 46 3.5.2 The Build Queue Panel.................. 46 3.6 Customization........................... 47 4 The New World 49 4.1 Terrain Types........................... 49 4.2 Goods............................... 50 4.2.1 Trade Routes....................... 52 4.3 Special Resources........................
    [Show full text]
  • HUBERT, Our Freeciv AI
    HUBERT, Our FreeCiv AI Michael Arcidiacono, Joel Joseph Dominic, Richard Akira Heru Friday 7th December, 2018 Abstract FreeCiv is an open-source alternative to Civilization, which is a turn-based strategy game that allows the player to control an empire by building cities, constructing and moving units, and engaging in diplomacy and war with other nations. We build an artificial intelligence (AI) nicknamed HUBERT to play this game. We use a modified SARSA algorithm with linear approximation of the Q function. We have also tried training HUBERT using a memetic algorithm. 1 Introduction The Civilization video game series is a collection of turn-based strategy games that allow the player to control an empire by building cities, constructing and moving units, and engaging in diplomacy and war with other nations. There are several different ways of winning the game such as through military dominion (i.e. by taking over all the cities of other empires). We use an open-source alternative to Civilization, FreeCiv and focus on getting the highest score for this agent. A screenshot of the game in progress can be seen in Figure1. We model this game as a Markov Decision Process (MDP) with states, actions and re- wards. In our model, the states are quantified as a β vector per city containing the total number of cities, total amount of gold, tax, science, luxury, gold per turn, turn number, the number of technologies, city population, city surplus, city unhappiness level, and city food. At any given turn, the player can choose to build cities, build units, move units, declare war, trade resources, research technology, and engage in many other possible actions.
    [Show full text]