项目
在 GitHub 查看
xviniette/FlappyLearning
xviniette/FlappyLearning has 4,008 GitHub stars and 501 forks. GitHot measured +1 stars in 24 hours and +13 in 7 days. Last checked 2026-11-06 16:53 UTC. Last push 2023-11-23.
通过机器学习(神经进化)学习玩 Flappy Bird 的程序
实测星标增长
- 24小时
- +1
- 7天
- +13
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Flappy Learning (Demo)
Program that learns to play Flappy Bird by machine learning (Neuroevolution)

NeuroEvolution.js : Utilization
// Initialize
var ne = new Neuroevolution({options});
//Default options values
var options = {
network:[1, [1], 1], // Perceptron structure
population:50, // Population by generation
elitism:0.2, // Best networks kepts unchanged for the next generation (rate)
randomBehaviour:0.2, // New random networks for the next generation (rate)
mutationRate:0.1, // Mutation rate on the weights of synapses
mutationRange:0.5, // Interval of the mutation changes on the synapse weight
historic:0, // Latest generations saved
lowHistoric:false, // Only save score (not the network)
scoreSort:-1, // Sort order (-1 = desc, 1 = asc)
nbChild:1 // number of child by breeding
}
//Update options at any time
ne.set({options});
// Generate first or next generation
var generation = ne.nextGeneration();
//When an network is over -> save this score
ne.networkScore(generation[x], <score = 0>);
You can see the NeuroEvolution integration in Flappy Bird in Game.js.