ScratchData LogoScratchData
Back to MetsLoverAlonso's profile

AI Learns to Play Flappy Bird

MEMetsLoverAlonso•Created January 12, 2024
AI Learns to Play Flappy Bird
319
287
11350 views
View on Scratch

Instructions

Just a simulation. Hold K to kill the ai. V to hide variables READ THIS: Watch the ai slowly get better than you at flappy bird! They start off random, but grow better. You can change many parameters. Use turbo mode to make them train FAST. 'Mutation Rate' is how much the next generation differs from the previous. '# of clones' and 'flap height' are self explanatory. Sometimes the ai gets worse. Don't worry, it'll get better soon. It should get more than 50 at generation 40. If it doesn't, restart the project. Sometimes clones will be behind each other. That will make the 'Best Clone' variable seem off. It's not. The best ai each generation will clone itself to ensure evolution doesn't go backwards. NOTE: Sometimes the ai will be bad for 100s of generations, and sometimes it'll be good right away. If it isn't good, restart.

Description

COMMENT NAMES I SHOULD ADD 1/19/24 UPDATE: ADDED SAVING! Press 'S' or click the save button to generate a save code of your best ai, and at the beginning, paste it to load it!!! POST SAVE CODES HERE: https://scratch.mit.edu/discuss/topic/736071/ If you like the project, please consider sharing the link and following! May add 'play against best ai' mode. Comment your best ai & score My best ai got 2283 :0 Hold shift while clicking green flag to get turbo mode #AI #NeuralNetwork #FlappyBird #Evolution

Project Details

Project ID950160508
CreatedJanuary 12, 2024
Last ModifiedOctober 11, 2024
SharedJanuary 15, 2024
Visibilityvisible
CommentsAllowed