Research Article

Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach

Volume: 18 Number: 1 February 23, 2026

Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach

Abstract

This study presents a Genetic Algorithm (GA)-driven optimization framework for enhancing the heuristic evaluation function of a Tetris bot. The proposed approach combines offline evolutionary training with real-time dynamic weight adjustments to adapt the bot's strategy to evolving gameplay conditions. Key heuristic features—including hole minimization, line clearing, and surface bumpiness—are weighted dynamically based on board state metrics such as maximum column height. Evaluated through 100 independent simulations, the GA-optimized bot demonstrated significant performance improvements over a baseline bot with fixed heuristic weights: +61.79\% in average lines cleared (91.38 vs. 56.48) and +55.74\% in average game duration (3.17 vs. 2.04 minutes). While decision latency increased marginally (7.33 ms vs. 7.05 ms), this trade-off was justified by the bot's enhanced strategic adaptability, evidenced by reduced performance variance and outlier frequency. The results validate GA's efficacy in optimizing complex, multi-objective decision-making processes in dynamic environments. Future work will explore hybrid GA-reinforcement learning architectures and applications to other real-time strategy games.

Keywords

References

  1. Ade, P., Implementation of genetic algorithms in the application of car racing games, Indonesian Journal of Artificial Intelligence and Data Mining, 4(2021), 29–34.
  2. Angeline, P.J., Kinnear, K.E., Genetically optimizing the speed of programs evolved to play tetris, in: Advances in Genetic Programming, MIT Press, 1996, 279–298.
  3. Armanto, H., Setiabudi, K., Pickerling, C., Komparasi algoritma WOA, MFO dan genetic pada optimasi evolutionary neural network dalam menyelesaikan permainan 2048, Jurnal Inovasi Teknologi dan Edukasi Teknik, (2021).
  4. Armanto, H., Rosyid, H.A., Muladi, G., Improved non-player character (NPC) behavior using evolutionary algorithm—A systematic review, Entertainment Computing, 52(2025), 100875.
  5. Armanto, H., Dwi Putra, R., Pickerling, C., MVPA and GA comparison for state space optimization at classic tetris game agent problem, Inform: Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi, 7(2022), 73–80.
  6. Bairaktaris, J.A., Johannssen, A., Outsmarting algorithms: A comparative battle between reinforcement learning and heuristics in atari tetris, Expert Systems with Applications, 277(2025), 127251.
  7. Bello Salau, H., Aibinu, A., Onwuka, L., Onumanyi, A., Dukiya, J., An examination of different selection approaches for genetic algorithm implementation process, Proc. IEEE NIGERCON, (2018), 123–126.
  8. Bernal, G., Jung, H., Yassı, I.E., Hidalgo, N., Alemu, et al., Unraveling the dynamics of mental and visuospatial workload in virtual reality environments, Computers, 13(2024), 246.

Details

Primary Language

English

Subjects

Evolutionary Computation, Artificial Life and Complex Adaptive Systems

Journal Section

Research Article

Publication Date

February 23, 2026

Submission Date

March 22, 2025

Acceptance Date

November 25, 2025

Published in Issue

Year 2026 Volume: 18 Number: 1

APA
Erkalkan, E. (2026). Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach. Turkish Journal of Mathematics and Computer Science, 18(1), 220-247. https://doi.org/10.47000/tjmcs.1663275
AMA
1.Erkalkan E. Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach. TJMCS. 2026;18(1):220-247. doi:10.47000/tjmcs.1663275
Chicago
Erkalkan, Ercan. 2026. “Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach”. Turkish Journal of Mathematics and Computer Science 18 (1): 220-47. https://doi.org/10.47000/tjmcs.1663275.
EndNote
Erkalkan E (February 1, 2026) Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach. Turkish Journal of Mathematics and Computer Science 18 1 220–247.
IEEE
[1]E. Erkalkan, “Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach”, TJMCS, vol. 18, no. 1, pp. 220–247, Feb. 2026, doi: 10.47000/tjmcs.1663275.
ISNAD
Erkalkan, Ercan. “Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach”. Turkish Journal of Mathematics and Computer Science 18/1 (February 1, 2026): 220-247. https://doi.org/10.47000/tjmcs.1663275.
JAMA
1.Erkalkan E. Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach. TJMCS. 2026;18:220–247.
MLA
Erkalkan, Ercan. “Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach”. Turkish Journal of Mathematics and Computer Science, vol. 18, no. 1, Feb. 2026, pp. 220-47, doi:10.47000/tjmcs.1663275.
Vancouver
1.Ercan Erkalkan. Heuristic Optimization of a Tetris Bot Using Genetic Algorithms: An Adaptive Evolutionary Approach. TJMCS. 2026 Feb. 1;18(1):220-47. doi:10.47000/tjmcs.1663275