Enhancing Player Levels in the Nim Game Using Genetic Algorithms
The Nim game is a fundamental example in combinatorial game theory, exemplifying impartial games where moves depend solely on the current position. Creating difficulty levels in Nim for computer play presents challenges, as small changes in game element positioning can significantly alter the game’s difficulty. Initial ideas, such as randomly applying the winning formula or ensuring constant computer wins, but it proved unsatisfactory due to erratic or discouraging gameplay. This article proposes using Genetic Algorithms (GAs) to develop varied difficulty levels in Nim. Our approach avoids the established winning formula, making defining an independent fitness function complex. Instead, we employ a competitive coevolutionary fitness function, where individuals are evaluated against each other, allowing the fitness criteria to evolve with the population. This method produces more nuanced and engaging difficulty levels, enhancing player experience through a balanced and evolving challenge.
Authors
- Pedro Henrique González (ORCID: https://orcid.org/0000-0003-0057-7670)
- Laura Ellen França Soares (ORCID: https://orcid.org/0000-0002-9254-8318)
- M.P.S.M. Peres
- Kennedy Morais Fernandes
- José Sántos (ORCID: https://orcid.org/0000-0002-4212-1367)
- Diego Brandão (ORCID: https://orcid.org/0000-0003-3874-784X)
- F. M. P. Viana
- Eduardo Bezarra
Institutions
- Universidade Federal do Rio de Janeiro (BR)
- Federal Center for Technological Education Celso Suckow da Fonseca (BR)
- Universidade Federal do Sul da Bahia (BR)
Publication Details
- Published
- 2024-09-30
- DOI
- https://doi.org/10.5753/sbgames.2024.241335
- Primary Topic
- Artificial Intelligence in Games
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior
- Conselho Nacional de Desenvolvimento Científico e Tecnológico
- Fundação Carlos Chagas Filho de Amparo à Pesquisa do Estado do Rio de Janeiro