SlideShare uma empresa Scribd logo
1 de 14
Baixar para ler offline
Optimizing Strategy Parameters in a Game Bot
          A. Fernández-Ares, A.M. Mora, J.J. Merelo,
          P. García-Sánchez, and C.M. Fernandes
viernes 10 de junio de 2011
Agenda
                Introduction
                Problem description
                Baseline: GoogleBot
                First Approach: AresBot
                Second Approach: GeneBot
                Conclusions



viernes 10 de junio de 2011
Introduction
                Google AI Challenge
                Planet Wars Game




viernes 10 de junio de 2011
viernes 10 de junio de 2011
Problem description
                                                          Actions
                              Current
                                             Bot             to
                              status
                                                          perform

                Restrictions
                      RTS->Turn based game. A turn = 1 sec
                      No memory to store knowledge about the game
                      Current status: planets and fleets
                      Actions: a text file with actions to be read by the game
viernes 10 de junio de 2011
Baseline: GoogleBot
                Included in the framework to use as a comparator of
                quality
                How does it work:
                      Seeks the planet that hosts most ships (base)
                      Target planet calculated using the ratio of growth-rate and
                      number of ships
                      Waits until the fleet reachs the target



viernes 10 de junio de 2011
First Approach: AresBot
                In each turn:
                Select the base according a score function (the rest are
                colonies)
                Select a target planet to attack
                For each colony:
                      Reinforcement of base planet (tithe) or
                      Contribute to attacking


viernes 10 de junio de 2011
AresBot parameters
                titheperc and titheprob: percentage of starships the bot
                sends/probability it happens.
                ωNS−DIS and ωGR: weight of the number of starships,
                distance to target from base and planet growth rate (used
                in the score function of target planet)
                poolperc and supportperc: percentage ships that the bot
                sends from the base planet or colonies to the target planet.
                supportprob: probability of sending extra fleets from the
                colonies to the target planet


viernes 10 de junio de 2011
Operation GeneBot

                Using intergalactic techniques from planet Ares to
                evolve AresBot: a Genetic Algorithm!
                Gene: parameters array
                2-Tournament
                BLX-alpha crossover
                Ellitism



viernes 10 de junio de 2011
Fitness Function

                Each individual runs in five relevant maps
                Ranked fitness:
                      LT: Number of games a bot wins
                      if equal-> WT: number of turns to win




viernes 10 de junio de 2011
Experiments


                Population of 400 individuals
                40 sec to evaluate each one, so just one evaluation to
                enter in the competition (4 hours per generation)->(yes,
                parallelism in future...)




viernes 10 de junio de 2011
Results
                              titheperc   titheprob   ωNS−DIS   ωGR        poolperc     supportperc supportprob


      AresBot                  0,1         0,5            1           1        0,25         0,5        0,9

     GeneBot                  0,294 0,0389 0,316 0,844 0,727 0,822 0,579


                                                              Turns
                                                                                               Victories
                                    Average and Std. Dev. Min                         Max
         AresBot                             210 ± 130                    43      1001             99
        GeneBot                               159 ± 75                    22          458         100

viernes 10 de junio de 2011
Conclusions and
          Future Work
                GeneBot ended in 1454 position in the contest (36%).
                1000 positions better than AresBot
                More work to do:
                      Paralellism
                      Multi-objective approachs
                      Genetic Programming
                Stop when the bot acquire self-awareness, of course.


viernes 10 de junio de 2011
Thanks!
          (and questions, I guess)

viernes 10 de junio de 2011

Mais conteúdo relacionado

Destaque

Evolving Evil: Optimizing Flocking Strategies through Genetic Algorithms for ...
Evolving Evil: Optimizing Flocking Strategies through Genetic Algorithms for ...Evolving Evil: Optimizing Flocking Strategies through Genetic Algorithms for ...
Evolving Evil: Optimizing Flocking Strategies through Genetic Algorithms for ...Antonio Mora
 
Designing and Evolving an Unreal Tournament 2004 Expert Bot
Designing and Evolving an Unreal Tournament 2004 Expert BotDesigning and Evolving an Unreal Tournament 2004 Expert Bot
Designing and Evolving an Unreal Tournament 2004 Expert BotAntonio Mora
 
FSM-Based Agents for Playing Super Mario Game
FSM-Based Agents for Playing Super Mario GameFSM-Based Agents for Playing Super Mario Game
FSM-Based Agents for Playing Super Mario GameAntonio Mora
 
Póster: Comparing evolutionary algorithms to solve the game of MasterMind
Póster: Comparing evolutionary algorithms to solve the game of MasterMindPóster: Comparing evolutionary algorithms to solve the game of MasterMind
Póster: Comparing evolutionary algorithms to solve the game of MasterMindJuan J. Merelo
 
Adaptative bots for real time strategy game via map characterization
Adaptative bots for real time strategy game via map characterization Adaptative bots for real time strategy game via map characterization
Adaptative bots for real time strategy game via map characterization Antonio Fernández Ares
 
Usando bases de datos NoSQL para algoritmos evolutivos paralelos
Usando bases de datos NoSQL para algoritmos evolutivos paralelosUsando bases de datos NoSQL para algoritmos evolutivos paralelos
Usando bases de datos NoSQL para algoritmos evolutivos paralelosJuan J. Merelo
 
Estudio de un Operador de Mutación para Algoritmos Genéticos Basado en la Teo...
Estudio de un Operador de Mutación para Algoritmos Genéticos Basado en la Teo...Estudio de un Operador de Mutación para Algoritmos Genéticos Basado en la Teo...
Estudio de un Operador de Mutación para Algoritmos Genéticos Basado en la Teo...Juan J. Merelo
 

Destaque (9)

Evolving Evil: Optimizing Flocking Strategies through Genetic Algorithms for ...
Evolving Evil: Optimizing Flocking Strategies through Genetic Algorithms for ...Evolving Evil: Optimizing Flocking Strategies through Genetic Algorithms for ...
Evolving Evil: Optimizing Flocking Strategies through Genetic Algorithms for ...
 
Designing and Evolving an Unreal Tournament 2004 Expert Bot
Designing and Evolving an Unreal Tournament 2004 Expert BotDesigning and Evolving an Unreal Tournament 2004 Expert Bot
Designing and Evolving an Unreal Tournament 2004 Expert Bot
 
FSM-Based Agents for Playing Super Mario Game
FSM-Based Agents for Playing Super Mario GameFSM-Based Agents for Playing Super Mario Game
FSM-Based Agents for Playing Super Mario Game
 
Póster: Comparing evolutionary algorithms to solve the game of MasterMind
Póster: Comparing evolutionary algorithms to solve the game of MasterMindPóster: Comparing evolutionary algorithms to solve the game of MasterMind
Póster: Comparing evolutionary algorithms to solve the game of MasterMind
 
Adaptative bots for real time strategy game via map characterization
Adaptative bots for real time strategy game via map characterization Adaptative bots for real time strategy game via map characterization
Adaptative bots for real time strategy game via map characterization
 
Parameter Tuning
Parameter TuningParameter Tuning
Parameter Tuning
 
Genebot maeb
Genebot maebGenebot maeb
Genebot maeb
 
Usando bases de datos NoSQL para algoritmos evolutivos paralelos
Usando bases de datos NoSQL para algoritmos evolutivos paralelosUsando bases de datos NoSQL para algoritmos evolutivos paralelos
Usando bases de datos NoSQL para algoritmos evolutivos paralelos
 
Estudio de un Operador de Mutación para Algoritmos Genéticos Basado en la Teo...
Estudio de un Operador de Mutación para Algoritmos Genéticos Basado en la Teo...Estudio de un Operador de Mutación para Algoritmos Genéticos Basado en la Teo...
Estudio de un Operador de Mutación para Algoritmos Genéticos Basado en la Teo...
 

Último

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 

Último (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Optimizing Strategy Parameters in a Game Bot

  • 1. Optimizing Strategy Parameters in a Game Bot A. Fernández-Ares, A.M. Mora, J.J. Merelo, P. García-Sánchez, and C.M. Fernandes viernes 10 de junio de 2011
  • 2. Agenda Introduction Problem description Baseline: GoogleBot First Approach: AresBot Second Approach: GeneBot Conclusions viernes 10 de junio de 2011
  • 3. Introduction Google AI Challenge Planet Wars Game viernes 10 de junio de 2011
  • 4. viernes 10 de junio de 2011
  • 5. Problem description Actions Current Bot to status perform Restrictions RTS->Turn based game. A turn = 1 sec No memory to store knowledge about the game Current status: planets and fleets Actions: a text file with actions to be read by the game viernes 10 de junio de 2011
  • 6. Baseline: GoogleBot Included in the framework to use as a comparator of quality How does it work: Seeks the planet that hosts most ships (base) Target planet calculated using the ratio of growth-rate and number of ships Waits until the fleet reachs the target viernes 10 de junio de 2011
  • 7. First Approach: AresBot In each turn: Select the base according a score function (the rest are colonies) Select a target planet to attack For each colony: Reinforcement of base planet (tithe) or Contribute to attacking viernes 10 de junio de 2011
  • 8. AresBot parameters titheperc and titheprob: percentage of starships the bot sends/probability it happens. ωNS−DIS and ωGR: weight of the number of starships, distance to target from base and planet growth rate (used in the score function of target planet) poolperc and supportperc: percentage ships that the bot sends from the base planet or colonies to the target planet. supportprob: probability of sending extra fleets from the colonies to the target planet viernes 10 de junio de 2011
  • 9. Operation GeneBot Using intergalactic techniques from planet Ares to evolve AresBot: a Genetic Algorithm! Gene: parameters array 2-Tournament BLX-alpha crossover Ellitism viernes 10 de junio de 2011
  • 10. Fitness Function Each individual runs in five relevant maps Ranked fitness: LT: Number of games a bot wins if equal-> WT: number of turns to win viernes 10 de junio de 2011
  • 11. Experiments Population of 400 individuals 40 sec to evaluate each one, so just one evaluation to enter in the competition (4 hours per generation)->(yes, parallelism in future...) viernes 10 de junio de 2011
  • 12. Results titheperc titheprob ωNS−DIS ωGR poolperc supportperc supportprob AresBot 0,1 0,5 1 1 0,25 0,5 0,9 GeneBot 0,294 0,0389 0,316 0,844 0,727 0,822 0,579 Turns Victories Average and Std. Dev. Min Max AresBot 210 ± 130 43 1001 99 GeneBot 159 ± 75 22 458 100 viernes 10 de junio de 2011
  • 13. Conclusions and Future Work GeneBot ended in 1454 position in the contest (36%). 1000 positions better than AresBot More work to do: Paralellism Multi-objective approachs Genetic Programming Stop when the bot acquire self-awareness, of course. viernes 10 de junio de 2011
  • 14. Thanks! (and questions, I guess) viernes 10 de junio de 2011