Skip to content

kosausrk/flappy-bird-ai

Repository files navigation

flappy bird AI w/ TensorFlowJS Reinforcement Learning (Q-learning)

Tags: reinforcement learning · TensorFlow.js · Q-learning

inspired by: https://flappybird-ai.netlify.app/ credits to https://github.com/nebez/floppybird for game copy

I: CLI-Based Training (50 Episodes, 5k Memory)

Self-learning Flappy Bird AI built with TensorFlow.js and Deep Q-Learning. The agent trains from scratch in a Node.js environment, improving through trial and error over 50 episodes using a memory buffer of 5,000 game states.

AI Playing Flappy Bird

II: In-Browser Demo

The trained model is loaded directly into the browser, where it plays in real-time on a canvas using only JavaScript and TensorFlow.js — no backend required. Includes real-time visualization of gameplay, score, and optional live training.

AI Playing Flappy Bird

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8