Skip to content

Brick breaker game with an IA that plays for you. It uses reinforcement learning to learn how to play.

Notifications You must be signed in to change notification settings

Admunzi/AI-Brick-Breaker

Repository files navigation

Brick Breaker game with IA

Description

This is a game of brick breaker with an IA that plays for you. The goal is to break maximum bricks with the ball. Have 3 lives, if the ball fall down, you lose one life. If you lose all your lives, you lose the game.

It uses reinforcement learning to learn how to play, and it's based on the Q-learning algorithm.

How to play

  1. Clone the repository
  2. Install the requirements
  3. Create a folder named result in the root of the project
  4. Run the game with python3 main.py
  5. Select 1 for training, 2 for playing with a trained model

Training the model

Test Image 1

Video example 100% IA

ia-game.mp4

About

Brick breaker game with an IA that plays for you. It uses reinforcement learning to learn how to play.

Topics

Resources

Stars

Watchers

Forks

Languages