Reinforcement Learning pro hraní počítačových her

Abstract

This bachelor thesis explores the application of reinforcement learning in computer games. The goal is to compare the efficiency of modern deep reinforcement learning algorithms using the game Flappy Bird, where the agent learns solely from raw pixel input of the game screen. The theoretical part describes the principles of Markov Decision Processes and the role of neural networks in the context of Q-learning and Actor-Critic methods. In the practical part, an optimized game environment compatible with the Gymnasium interface was implemented in Python, along with a modular training framework. The thesis experimentally evaluates and compares six different agents: DQN, Double DQN, Dueling DQN, their combination Dueling DDQN, as well as A2C and PPO. The results show that PPO achieved a perfect score on the standard level, yet none of the tested models were able to reliably generalize to environments with different dynamics.

Description

Delayed publication

Available after

Subject(s)

reinforcement learning, machine learning, deep learning, neural networks, Python, Pygame, computer games, DQN, PPO, Flappy Bird

Citation