ALL PROJECTS
GRADUATION WORK / AI SYSTEM

GAMEBOY TETRIS SYSTEM

December, 2020 – January, 2021 GitHub Repository
Gameboy Tetris System Banner

Gameboy Tetris System is an AI system that plays Tetris (Gameboy) purely by accessing pixel buffers (reading the screen). Developed as Graduation Work for Digital Arts & Entertainment at Howest, the project includes paper and presentation documentation.

Visual StudioC++SDLDear ImGuiPixel Analysis

DEVELOPMENT PROCESS

01. RESEARCH

Researched Gameboy emulator mechanics, identified required pixel coordinates, and planned recognition methods for menus and gameplay states.

02. HELPER VIEWS

Built custom visualization tools and views to inspect incoming screen pixels and map expected code behavior in real time.

03. PIXEL DETECTION

Implemented pixel checking algorithms to detect current piece positions, next piece previews, and active playfield grids.

04. MENU NAVIGATION

Leveraged unique landmark pixels across screens to automatically guide the AI through Gameboy menu sequences.

05. AI DECISION ENGINE

Developed scoring algorithms and moveset predictors to evaluate piece placements and execute optimal inputs.

06. BUG SQUASHING

Resolved move placement edge cases and multithreading sync issues between emulator loops and decision logic.

FEATURES & TOOLS

Pixel Buffer Inspector

Debug tool allowing precise coordinate calculation and pixel sampling across specific screen regions.

Pixel Buffer Inspector
Pixel Inspector

Individual pixel color inspector used to gather and verify extra state data from the emulator buffer.

Pixel Inspector
Block Prediction

Visual debugger to test candidate moves and evaluate score calculations manually against system logic.

Block Prediction
Best Move Prediction

Displays optimal moves calculated by heuristic scoring for given active and upcoming piece pairs.

Best Move Prediction
Tetris Info Matrix

Core data views showing extracted playfield matrix, current active piece, and next piece queue.

Tetris Info
Play Info Monitor

Real-time status display showing active game state along with scheduled automated input sequences.

Play Info

DEMONSTRATION VIDEO