Abstract

Each game has an artificial intelligence that is used to fight the player, which will provide more challenge. But in some strategy games, unit movements are usually done using simple considerations. For example the rest of unit lives, unit strength, and so forth. In this study, a turn based strategy game is designed using genetic algorithm to control the movement of the enemy armies. In each turn, the enemy will move based on the potential level of produced damage to and from the opponent, the distance between the units, and the distance to the opponent’s building. The genetic algorithm’s chromosome for each unit contains the following information: the position where the unit will move, who is the target, and the distance to the armies’ centroid. Distance to centroid (midpoint) is used to force the units to remain in the set. The genetic algorithm process is used to control when and where the units will move or attack. From the test results, the genetic algorithm can create a more powerful enemy than the randomly moving enemy because it creates a higher winning chance of enemy units and acts more efficiently, in terms of the usage of money, the damage produced to the opponent, and the received damage.

Highlights

  • Computer game has many types/genre that is currently evolving, such as strategy games

  • Each game has an artificial intelligence implemented in the enemies to fight the player, but in some strategy games, units movements are made based on brief thoughts

  • The use of genetic algorithm of AI is more suitable when it is used in the turn-based strategy genre, because of the time to carry out the process of picking a best move that requires a long time

Read more

Summary

Introduction

Computer game has many types/genre that is currently evolving, such as strategy games. Strategy game is usually played by a human player, organizing buildings and armies, defending its base, and attacking enemy’s base. Strategy game is a genre that uses careful planning to achieve victory [1]. Turn-based strategy game, which is the expansion of the strategy genre, grows quite rapidly, because this game genre is challenging; every bad or good move can affect the entire war. Each game has an artificial intelligence implemented in the enemies to fight the player, but in some strategy games, units movements are made based on brief thoughts. The units’ remaining lives, the strength of the armies, the enemy units which will be targeted, and so forth, are usually the factors that a human player considers when playing. Strategy game has so many possibilities that can be optimized in terms of enemy AI [3]

Methods
Findings
Discussion
Conclusion
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call