SlideShare a Scribd company logo
1 of 21
Download to read offline
An overview on the
termination conditions in the
evolution of game bots
A. Fernández-Ares, P. García-Sánchez, A.M. Mora,
P.A. Castillo, J.J. Merelo, M.G. Arenas
Universidad de Granada (Spain)
A summary of previous works
Pablo García-Sánchez, Antonio Fernández-Ares, Antonio Miguel Mora,
Pedro A. Castillo Valdivieso, Jesús González, Juan Julián Merelo Guervós:
Tree Depth Influence in Genetic Programming for Generation of
Competitive Agents for RTS Games. EvoApplications 2014: 411-421
Antonio Fernández-Ares, Pablo García-Sánchez, Antonio Miguel Mora,
Pedro A. Castillo, Juan Julián Merelo Guervós: Designing competitive
bots for a real time strategy game using genetic programming.
CoSECivi 2014: 159-172
Antonio Fernández-Ares, Pablo García-Sánchez, Antonio M. Mora, Pedro
A. Castillo Valdivieso, Juan Julián Merelo Guervós, Maria I. García Arenas,
Gustavo Romero: It's Time to Stop: A Comparison of Termination
Conditions in the Evolution of Game Bots. EvoApplications 2015: 355-
368
Index
1. Introduction
a. RTS
b. Planet Wars
c. Genetic
Programming
2. GPBot
a. Conditions
b. Actions
3. SCORE - Fitness
4. Methodology
a. Termination Criteria
5. Experimental Setup
6. Results
a. Score
b. Generations
c. Tests
d. Benchmark
e. Comparative
7. Conclusions
8. Future Work
Introduction: RTS
Real-Time Strategy games (RTS-games)
● Resources
● Units
● Buildings
Victory: Get all resources, kill all enemy units or
destroy enemy buildings
Introduction: Planet Wars
Buildings:
Planets
Units:
Space ships
Resources:
Ships generated in
every planet
Introduction: Genetic Programming
Evolutionary Algorithm that evolves binary
decision tree
➔ Internal nodes: Conditions
➔ Leafs: Actions
Individual -> behavioural model (solution)
Evaluation -> Playing a game against a rival and getting
a score
Adapted operators
GPBot: Conditions
A logical expression composed by, at least, one
extracted standard game state variable and a
value between 0 and 1
● myShipsEnemyRatio
● myShipsLandedFlyingRatio
● myPlanetsEnemyRatio
● myPlanetsTotalRatio
● actualMyShipsRatio
● actualLandedFlyingRatio
GPBot: Actions
The possible actions just involve the movement
of an amount of ships from a source to a
destination planet
● Attack Nearest (Neutral|Enemy|NotMy)Planet
● Attack Weakest (Neutral|Enemy|NotMy) Planet
● Attack Wealthiest (Neutral|Enemy|NotMy)
Planet
● Attack Beneficial (Neutral|Enemy|NotMy)
Planet
● Attack Quickest (Neutral|Enemy|NotMy) Planet}
● Attack (Neutral|Enemy|NotMy) Base
● Attack Random Planet
● Reinforce Nearest Planet
● Reinforce Base
● Reinforce Wealthiest Planet
Score (Fitness)
SCORE
BASED IN
TURNS IN
VICTORIES
SCORE
BASED IN
TURNS IN
DEFEATS
SCORE
BASED IN
VICTORIES
> >
Methodology: Termination Criteria
[NG] Number of Generations
➔ 30, 50, 100, 200 Generations
[AO] Age of Outliers
➔ 1, 1.5, 2, 2.5 times the IQR
[RT] Replacement Rate
➔ n/2, n/4, n/8, n/16 with n = N/2
[FT] Fitness Threshold
➔ 22, 24, 26, 28
[FI] Fitness Improvement
➔ 3, 7, 10, 15
Experimental Setup
Parameter Name Value
Population Size (N) 32
Number of battles for scoring (NB) 30
Re-evaluation of individuals Yes
Crossover type Sub-tree crossover
Crossover rate 0.5
Mutation 1-node mutation
Mutation rate 0.25
Selection 2-tournament
Replacement Generational
Maximum Tree Depth 7
Runs 36
SCORE of the best individuals (of all runs) grouped by criterion
GENERATION attained (of all runs) grouped by criterion
Kruskal-Wallis Test of samples of each criterion by SCORE an
GENERATIONS.
Black means no statistically significant difference has been found.
Percentage of victories (of the 36 best individuals) in benchmark against five
different competitive bots available in the literature in 100 maps
Linear regression of the SCORE (fitness) with the results of the benchmark
(Percentage of victories)
Average score of the best individual
and average reached generations per
termination criteria
Average results of every criterion
(relative with respect to NG_30)
Conclusions I
[AO] Not good. As more restrictive
values don’t imply a significant score
improvement.
[FT] Best score. But the optimum fitness
might not be know. Needs the highest
amount of generations. It might not finish.
[FI] Useful to ‘detect’ local optima.
[RT] Provides the best results
considering all metrics.
Conclusions II
Fitness Threshold would be the most desirable
option
➔ It attains the best score.
➔ It is quite difficult to find an optimal fitness value to
use (normally it is unknown).
➔ Requires more computational budget, and it is
possible that it never ends (the criterion is not met).
Replacement Rate as stopping criterion, since it is a
compromise solution which relies in the population
improvement without an implicit use of the fitness.
Future work
● New problems (and algorithms) are being
addressed.
○ P. García-Sánchez, Alberto Tonda, Giovanni
Squillero and JJ. Merelo: Towards Automatic
StarCraft Strategy Generation Using Genetic
Programming. Accepted at CIG 2015.
● Mechanisms to improve the EA.
● Use larger and complex decision trees.
Questions
Thank you!
Antonio Fernández-Ares
antares@ugr.es - @antaress
Antonio M. Mora
amorag@ugr.es - @amoragar
Pablo García-Sánchez
pablogarcia@ugr.es - @fergunet

More Related Content

More from Sociedad Española para las Ciencias del Videojuego

More from Sociedad Española para las Ciencias del Videojuego (20)

CoSECiVi 2020 - GRETIVE Un Bot Evolutivo para HearthStone basado en Perfiles
CoSECiVi 2020 - GRETIVE Un Bot Evolutivo para HearthStone basado en PerfilesCoSECiVi 2020 - GRETIVE Un Bot Evolutivo para HearthStone basado en Perfiles
CoSECiVi 2020 - GRETIVE Un Bot Evolutivo para HearthStone basado en Perfiles
 
CoSECiVi 2020 - Las consecuencias del glitch en el entorno virtual interactivo
CoSECiVi 2020 - Las consecuencias del glitch en el entorno virtual interactivoCoSECiVi 2020 - Las consecuencias del glitch en el entorno virtual interactivo
CoSECiVi 2020 - Las consecuencias del glitch en el entorno virtual interactivo
 
CoSECiVi 2020 - Games studies in architectural education: An experimental gra...
CoSECiVi 2020 - Games studies in architectural education: An experimental gra...CoSECiVi 2020 - Games studies in architectural education: An experimental gra...
CoSECiVi 2020 - Games studies in architectural education: An experimental gra...
 
CoSECiVi 2020 - Multiresolution Foliage Rendering
CoSECiVi 2020 - Multiresolution Foliage RenderingCoSECiVi 2020 - Multiresolution Foliage Rendering
CoSECiVi 2020 - Multiresolution Foliage Rendering
 
CoSECiVi 2020 - Development of a User-Friendly Application for Creating Tacti...
CoSECiVi 2020 - Development of a User-Friendly Application for Creating Tacti...CoSECiVi 2020 - Development of a User-Friendly Application for Creating Tacti...
CoSECiVi 2020 - Development of a User-Friendly Application for Creating Tacti...
 
CoSECiVi 2020 - Entornos parcialmente no euclidianos en realidad virtual
CoSECiVi 2020 - Entornos parcialmente no euclidianos en realidad virtualCoSECiVi 2020 - Entornos parcialmente no euclidianos en realidad virtual
CoSECiVi 2020 - Entornos parcialmente no euclidianos en realidad virtual
 
CoSECiVi 2020 - An Exploration on Automating Player Personality Identificatio...
CoSECiVi 2020 - An Exploration on Automating Player Personality Identificatio...CoSECiVi 2020 - An Exploration on Automating Player Personality Identificatio...
CoSECiVi 2020 - An Exploration on Automating Player Personality Identificatio...
 
CoSECiVi 2020 - Data mining of deck archetypes in Hearthstone
CoSECiVi 2020 - Data mining of deck archetypes in HearthstoneCoSECiVi 2020 - Data mining of deck archetypes in Hearthstone
CoSECiVi 2020 - Data mining of deck archetypes in Hearthstone
 
CoSECiVi 2020 - Descubrimiento de modelos de comportamiento de perfiles de ju...
CoSECiVi 2020 - Descubrimiento de modelos de comportamiento de perfiles de ju...CoSECiVi 2020 - Descubrimiento de modelos de comportamiento de perfiles de ju...
CoSECiVi 2020 - Descubrimiento de modelos de comportamiento de perfiles de ju...
 
CoSECiVi 2020 - Virtual Reality and Chess. A Video Game for Cognitive Trainin...
CoSECiVi 2020 - Virtual Reality and Chess. A Video Game for Cognitive Trainin...CoSECiVi 2020 - Virtual Reality and Chess. A Video Game for Cognitive Trainin...
CoSECiVi 2020 - Virtual Reality and Chess. A Video Game for Cognitive Trainin...
 
CoSECiVi'16 - Hacia la generación automática de mecánicas de juego: un edito...
CoSECiVi'16 - 	Hacia la generación automática de mecánicas de juego: un edito...CoSECiVi'16 - 	Hacia la generación automática de mecánicas de juego: un edito...
CoSECiVi'16 - Hacia la generación automática de mecánicas de juego: un edito...
 
CoSECiVi'16 - Computación Efímera: identificando retos para la investigación e...
CoSECiVi'16 - Computación Efímera: identificando retos para la investigación e...CoSECiVi'16 - Computación Efímera: identificando retos para la investigación e...
CoSECiVi'16 - Computación Efímera: identificando retos para la investigación e...
 
CoSECiVi'16 - Walking in VR. Measuring Presence and Simulator Sickness in Fir...
CoSECiVi'16 - Walking in VR. Measuring Presence and Simulator Sickness in Fir...CoSECiVi'16 - Walking in VR. Measuring Presence and Simulator Sickness in Fir...
CoSECiVi'16 - Walking in VR. Measuring Presence and Simulator Sickness in Fir...
 
CoSECiVi'16 - Extensión de los grafos de dependencia para incrementar la reju...
CoSECiVi'16 - Extensión de los grafos de dependencia para incrementar la reju...CoSECiVi'16 - Extensión de los grafos de dependencia para incrementar la reju...
CoSECiVi'16 - Extensión de los grafos de dependencia para incrementar la reju...
 
CoSECiVi'16 - Sólo puede quedar uno: Evolución de Bots para RTS basada en sup...
CoSECiVi'16 - Sólo puede quedar uno: Evolución de Bots para RTS basada en sup...CoSECiVi'16 - Sólo puede quedar uno: Evolución de Bots para RTS basada en sup...
CoSECiVi'16 - Sólo puede quedar uno: Evolución de Bots para RTS basada en sup...
 
CoSECiVi'16 - Living-UGR: Una aventura gráfica geolocalizada para difundir el...
CoSECiVi'16 - Living-UGR: Una aventura gráfica geolocalizada para difundir el...CoSECiVi'16 - Living-UGR: Una aventura gráfica geolocalizada para difundir el...
CoSECiVi'16 - Living-UGR: Una aventura gráfica geolocalizada para difundir el...
 
CoSECiVi'16 - Desarrollo de una plataforma basada en Unity3D para la aplicaci...
CoSECiVi'16 - Desarrollo de una plataforma basada en Unity3D para la aplicaci...CoSECiVi'16 - Desarrollo de una plataforma basada en Unity3D para la aplicaci...
CoSECiVi'16 - Desarrollo de una plataforma basada en Unity3D para la aplicaci...
 
CoSECiVi'16 - Educapiz: Una herramienta para educación infantil basada en ser...
CoSECiVi'16 - Educapiz: Una herramienta para educación infantil basada en ser...CoSECiVi'16 - Educapiz: Una herramienta para educación infantil basada en ser...
CoSECiVi'16 - Educapiz: Una herramienta para educación infantil basada en ser...
 
CoSECiVi'15 - Predicting the winner in two player StarCraft games
CoSECiVi'15 - Predicting the winner in two player StarCraft gamesCoSECiVi'15 - Predicting the winner in two player StarCraft games
CoSECiVi'15 - Predicting the winner in two player StarCraft games
 
CoSECiVi'15 - Automatic gameplay testing for message passing architectures
CoSECiVi'15 - Automatic gameplay testing for message passing architecturesCoSECiVi'15 - Automatic gameplay testing for message passing architectures
CoSECiVi'15 - Automatic gameplay testing for message passing architectures
 

Recently uploaded

Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Lokesh Kothari
 
GFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxGFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxAleenaTreesaSaji
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptxRajatChauhan518211
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...Sérgio Sacani
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfSumit Kumar yadav
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTSérgio Sacani
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 
Orientation, design and principles of polyhouse
Orientation, design and principles of polyhouseOrientation, design and principles of polyhouse
Orientation, design and principles of polyhousejana861314
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisDiwakar Mishra
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PPRINCE C P
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000Sapana Sha
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRDelhi Call girls
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPirithiRaju
 

Recently uploaded (20)

Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
The Philosophy of Science
The Philosophy of ScienceThe Philosophy of Science
The Philosophy of Science
 
GFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxGFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptx
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
Orientation, design and principles of polyhouse
Orientation, design and principles of polyhouseOrientation, design and principles of polyhouse
Orientation, design and principles of polyhouse
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 

CoSECiVi'15 - An overview on the termination conditions in the evolution of game bots

  • 1. An overview on the termination conditions in the evolution of game bots A. Fernández-Ares, P. García-Sánchez, A.M. Mora, P.A. Castillo, J.J. Merelo, M.G. Arenas Universidad de Granada (Spain)
  • 2. A summary of previous works Pablo García-Sánchez, Antonio Fernández-Ares, Antonio Miguel Mora, Pedro A. Castillo Valdivieso, Jesús González, Juan Julián Merelo Guervós: Tree Depth Influence in Genetic Programming for Generation of Competitive Agents for RTS Games. EvoApplications 2014: 411-421 Antonio Fernández-Ares, Pablo García-Sánchez, Antonio Miguel Mora, Pedro A. Castillo, Juan Julián Merelo Guervós: Designing competitive bots for a real time strategy game using genetic programming. CoSECivi 2014: 159-172 Antonio Fernández-Ares, Pablo García-Sánchez, Antonio M. Mora, Pedro A. Castillo Valdivieso, Juan Julián Merelo Guervós, Maria I. García Arenas, Gustavo Romero: It's Time to Stop: A Comparison of Termination Conditions in the Evolution of Game Bots. EvoApplications 2015: 355- 368
  • 3. Index 1. Introduction a. RTS b. Planet Wars c. Genetic Programming 2. GPBot a. Conditions b. Actions 3. SCORE - Fitness 4. Methodology a. Termination Criteria 5. Experimental Setup 6. Results a. Score b. Generations c. Tests d. Benchmark e. Comparative 7. Conclusions 8. Future Work
  • 4. Introduction: RTS Real-Time Strategy games (RTS-games) ● Resources ● Units ● Buildings Victory: Get all resources, kill all enemy units or destroy enemy buildings
  • 5. Introduction: Planet Wars Buildings: Planets Units: Space ships Resources: Ships generated in every planet
  • 6. Introduction: Genetic Programming Evolutionary Algorithm that evolves binary decision tree ➔ Internal nodes: Conditions ➔ Leafs: Actions Individual -> behavioural model (solution) Evaluation -> Playing a game against a rival and getting a score Adapted operators
  • 7. GPBot: Conditions A logical expression composed by, at least, one extracted standard game state variable and a value between 0 and 1 ● myShipsEnemyRatio ● myShipsLandedFlyingRatio ● myPlanetsEnemyRatio ● myPlanetsTotalRatio ● actualMyShipsRatio ● actualLandedFlyingRatio
  • 8. GPBot: Actions The possible actions just involve the movement of an amount of ships from a source to a destination planet ● Attack Nearest (Neutral|Enemy|NotMy)Planet ● Attack Weakest (Neutral|Enemy|NotMy) Planet ● Attack Wealthiest (Neutral|Enemy|NotMy) Planet ● Attack Beneficial (Neutral|Enemy|NotMy) Planet ● Attack Quickest (Neutral|Enemy|NotMy) Planet} ● Attack (Neutral|Enemy|NotMy) Base ● Attack Random Planet ● Reinforce Nearest Planet ● Reinforce Base ● Reinforce Wealthiest Planet
  • 9. Score (Fitness) SCORE BASED IN TURNS IN VICTORIES SCORE BASED IN TURNS IN DEFEATS SCORE BASED IN VICTORIES > >
  • 10. Methodology: Termination Criteria [NG] Number of Generations ➔ 30, 50, 100, 200 Generations [AO] Age of Outliers ➔ 1, 1.5, 2, 2.5 times the IQR [RT] Replacement Rate ➔ n/2, n/4, n/8, n/16 with n = N/2 [FT] Fitness Threshold ➔ 22, 24, 26, 28 [FI] Fitness Improvement ➔ 3, 7, 10, 15
  • 11. Experimental Setup Parameter Name Value Population Size (N) 32 Number of battles for scoring (NB) 30 Re-evaluation of individuals Yes Crossover type Sub-tree crossover Crossover rate 0.5 Mutation 1-node mutation Mutation rate 0.25 Selection 2-tournament Replacement Generational Maximum Tree Depth 7 Runs 36
  • 12. SCORE of the best individuals (of all runs) grouped by criterion
  • 13. GENERATION attained (of all runs) grouped by criterion
  • 14. Kruskal-Wallis Test of samples of each criterion by SCORE an GENERATIONS. Black means no statistically significant difference has been found.
  • 15. Percentage of victories (of the 36 best individuals) in benchmark against five different competitive bots available in the literature in 100 maps
  • 16. Linear regression of the SCORE (fitness) with the results of the benchmark (Percentage of victories)
  • 17. Average score of the best individual and average reached generations per termination criteria Average results of every criterion (relative with respect to NG_30)
  • 18. Conclusions I [AO] Not good. As more restrictive values don’t imply a significant score improvement. [FT] Best score. But the optimum fitness might not be know. Needs the highest amount of generations. It might not finish. [FI] Useful to ‘detect’ local optima. [RT] Provides the best results considering all metrics.
  • 19. Conclusions II Fitness Threshold would be the most desirable option ➔ It attains the best score. ➔ It is quite difficult to find an optimal fitness value to use (normally it is unknown). ➔ Requires more computational budget, and it is possible that it never ends (the criterion is not met). Replacement Rate as stopping criterion, since it is a compromise solution which relies in the population improvement without an implicit use of the fitness.
  • 20. Future work ● New problems (and algorithms) are being addressed. ○ P. García-Sánchez, Alberto Tonda, Giovanni Squillero and JJ. Merelo: Towards Automatic StarCraft Strategy Generation Using Genetic Programming. Accepted at CIG 2015. ● Mechanisms to improve the EA. ● Use larger and complex decision trees.
  • 21. Questions Thank you! Antonio Fernández-Ares antares@ugr.es - @antaress Antonio M. Mora amorag@ugr.es - @amoragar Pablo García-Sánchez pablogarcia@ugr.es - @fergunet