Skip to content

Commit 60e2dec

Browse files
authored
README.md
1 parent fc0e1ab commit 60e2dec

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

AI-driven AI Flappy Bird/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Package/Script Name: AI-driven AI Flappy Bird
2+
3+
Short Description: AI-driven AI Flappy Bird is a Python script that implements an AI player for the game "Flappy Bird." The AI player uses the Genetic Algorithm to learn and play the game automatically, aiming to achieve a high score.
4+
5+
Functionalities/Script:
6+
7+
FlappyBirdGame class: Represents the Flappy Bird game and handles game logic.
8+
AI_agent class: Implements the AI player using the Genetic Algorithm to learn and play the game.
9+
Heuristic evaluation function: Calculates the fitness of each AI agent based on its performance in the game.
10+
Board representation: Displays the game window, bird, and pipes.
11+
Setup Instructions:
12+
13+
Make sure you have Python installed on your system (Python 3.6 or higher).
14+
Install the required libraries using pip:
15+
bash
16+
Copy code
17+
pip install pygame
18+
Download the AI_flappy_bird.py file from the repository or package.
19+
Explanation of Script:
20+
The AI-driven AI Flappy Bird script utilizes the Genetic Algorithm to train AI agents to play the Flappy Bird game. The AI agents aim to learn how to navigate through pipes by optimizing their performance over multiple generations.
21+
22+
Usage:
23+
24+
Run the AI_flappy_bird.py script.
25+
bash
26+
Copy code
27+
python AI_flappy_bird.py
28+
The game window will open, and the AI agents will start playing Flappy Bird.
29+
Observe how the AI agents improve their performance over generations.
30+
Output:
31+
The AI-driven AI Flappy Bird script will display a game window where AI agents play the Flappy Bird game. The script will continuously show the performance of the current generation of AI agents. The AI agents will learn and adapt to navigate through the pipes more effectively over generations.
32+
33+
Author:
34+
Shikhar9425

0 commit comments

Comments
 (0)