Tetris BRKG AI
1 min read
Tetris BRKG AI
The Tetris-BRKG-AI project evolves Tetris heuristic weights live with BRKGA while the AI plays.
It shares the BRKGA core with BRKGA-Orienteering and the performance focus of Cache-Engine-Deep-Dive.
Engine
Pure NumPy board, no Python loops in hot path. 2 ply search evaluates placements by height, holes, bumpiness and lines.
Live Evolution
Population of weight vectors. When AI tops out, fitness is score, selection and biased crossover produce next gen. No pause, evolution runs alongside play.
See PR-Review-Agent for similar online learning and ERPlag-Compiler-Build for deterministic vs stochastic search.
Project: Tetris with Live BRKGA Related: BRKGA-Orienteering for the algorithm details.