An open API service indexing awesome lists of open source software.

https://github.com/matrixsmaster/flappy_neat

Flappy NEAT is a testbench where neural networks learn to play a game using a mix of genetic neuro-evolution and reinforcement learning.
https://github.com/matrixsmaster/flappy_neat

ai delphi7 genetic-algorithm reinforcement-learning

Last synced: 8 months ago
JSON representation

Flappy NEAT is a testbench where neural networks learn to play a game using a mix of genetic neuro-evolution and reinforcement learning.

Awesome Lists containing this project

README

          

# ๐Ÿค Flappy NEAT

screenshot

**Flappy NEAT** is a chaotic little testbench where neural networks learn to play a Flappy Birdโ€“style game using a mix of **genetic neuro-evolution** and **reinforcement learning**. Itโ€™s designed to let you:

- Compare **human**, **algorithmic**, **neuro-evolved**, and **RL-trained** performance
- Seamlessly switch from **evolution** to **RL fine-tuning** once a score threshold is hit
- Experiment with unique genetic operators and learning tricks you've probably never seen before

Itโ€™s a research toy, a performance benchmark, and a testbed for weird ideasโ€”all in one.

---

## ๐Ÿง  Highlights

- ๐Ÿš€ **Alpha-selection**: A novel genetic operator to drive better diversity
- ๐Ÿ”ฅ **Neuron heat dynamics**: RL weight updates are modulated by how โ€œhotโ€ neurons are
- ๐Ÿงฌ **Custom crossover/inversion/mutation logic**
- ๐ŸŽฉ **Interactive human mode** for score comparison
- ๐Ÿค– **Algorithmic solver mode** (perfect agent)
- ๐Ÿงช **Experimental PPO-inspired RL strategy**
- ๐Ÿ”€ **Hybrid GA โ†’ RL transition** based on fitness threshold
- ๐Ÿ› ๏ธ **Live UI** with parameter tweaking
- ๐Ÿ“š **Help system** built into the UI with all information needed to understand every parameter
- ๐Ÿ”„ **Save/load for agents and populations**
- ๐ŸŒ **Neural network visualization and weight matrix viewer**
- ๐Ÿ•› **Scenario replay support for post-mortem analysis**

---

## ๐Ÿ› ๏ธ Running the Project

### A precompiled `.exe` is provided with each release - you can run it directly in windows or WINE.

This program was built using **Delphi 7**, which means:

> โš ๏ธ You will need a **Windows XP environment** with **Delphi 7** installed to compile and run this project.

We recommend spinning up a virtual machine for this purpose. Nostalgia points are included for free.

---

## ๐Ÿงช Sample Use Case

Train a population to solve the level using evolution, then transition into RL for fine-tuning behavior. Compare its score to your own flapping skills, or the perfect algorithmic solver. Discover if your `AlphaSort` operator beats standard crossover methods. Watch neuron "heat maps" influence updates. Or just... create a mutant bird that flaps with pure chaos.

Hint: Try to use test INI files provided in the repo.

### (C) Dmitry 'MatrixS_Master' Solovyev, 2025

### License: GPL v3