A remake of the Flappy Bird game with Artificial Intelligence developed as a project for the Fondamenti di Intelligenza Artificiale (Fundamentals of Artificial Intelligence) course, part of the Computer Science Bachelor's Degree program at the University of Salerno
Name | Github profile |
---|---|
Aviello Raffaele | raffaeleav |
Menzione Michele | Michibit |
FIA Bird was developed with the goal of experimenting how artificial intelligence can be applied to video games. The underlying game that this project uses is an implementation that is quite similar to the original game (which this repository has forked). The purpose of the project is to apply the studied local search algorithms to the game's framework in order to make the game function automatically. The game consists of guiding the intelligent agent (represented by a robot sprite) through a series of obstacles represented by pipes, with the goal of making the agent fly as far as possible.
- Hill Climbing algorithm
- Stochastic Hill Climbing algorithm
- Clone the repository
git clone https://github.com/raffaeleav/fia-bird.git
- Switch to the project directory
cd fia-bird
- Compile the project
javac $(find . -name "*.java")
- Run the game with the Hill Climbing algorithm
java -cp ./src/main/java iamodule.HillClimbing
- Alternatively, run the game with the Stochastic Hill Climbing algorithm
java -cp ./src/main/java iamodule.StochasticHillClimbing