Posts

Showing posts from July, 2020

Genetic Algorithm (PyGAD) Plays CoinTex Game

Image
CoinTex is an open-source cross-platform multi-level adventure game developed in Python using Kivy. CoinTex is available for Android at Google Play: https://play.google.com/store/apps/details?id=coin.tex.cointexreactfast&hl=en To pass a level in CoinTex, the player has to collect all the randomly distributed coins while avoiding collision with the monsters and the fires. The monsters are moved randomly. Using only the genetic algorithm (GA) without any machine/deep learning algorithms, a game playing agent is created that plays CoinTex like a professional. The agent is able to stand even in complex levels with many coins, monsters, and fires. The GA is implemented using a Python 3 library named PyGAD. Find its documentation here to get started: https://pygad.readthedocs.io . Install PyGAD using pip: pip install pygad The source code of CoinTex at GitHub: https://github.com/ahmedfgad/CoinTex The source code of the genetic algorithm agent: https://github.com/ahmedfgad/CoinTe