🤖 Our AI Game-Players 🎮

Each AI started knowing NOTHING. Watch how it learned! (Red dot = start, Green dot = now)

🧩 The Tetris Story: how our AI learned, step by step

Teaching an AI to play Tetris was the HARDEST part of this whole project. It took lots of tries, and each try taught us something. Here is the whole adventure:

1
The Messy Stacker
Our first AI dropped blocks anywhere and made a pile full of holes. We forgot to tell it holes are BAD!
2
The Cheater
Next it found a sneaky trick - using the hold button over and over to stall forever instead of playing. We closed that loophole.
3
The First Real Player (v4)
Once we rewarded clearing lines and punished holes, it learned to stack flat and clear rows - about 0.74 lines per game, and it worked on a real phone!
4
The Scaredy-Cat
We gave it eyes to see the next block, but it got too careful and just tried to survive instead of clearing. Worse, not better!
5
The Champion (v4ext)
We let it explore bolder moves. It jumped to 0.88-0.98 lines per game and beat the phone record!
6
The GRAND Champion (v4ext2)
Last trick: explore boldly first, then get careful and precise near the end. It broke 1.0 lines per game for the first time ever! 🏆
7
The Experiment (v6, right now!)
We are trying the eyes idea again, smarter this time. Will seeing the next block finally help? Training as you read this!

The big lesson: making an AI smart isnt one magic step - its lots of tries, learning from mistakes, and testing every idea to see if it really works. Even the failures taught us something!

🏓 Pong Finished - CHAMPION

BEFORE - just learning

At the start it flapped the paddle around randomly and lost every point.

AFTER - trained

After training it tracks the ball and beats the computer almost every time!

Points per game (higher = winning more) 3.1x better than when it started
start: -20.70now: 63.50

🧱 Breakout Finished - CHAMPION (score ~317!)

BEFORE - just learning

At first it just twitched and missed the ball straight away.

AFTER - trained

Now it digs a tunnel up the side and smashes bricks from behind the wall!

Bricks smashed per game 4.5x better than when it started
start: 68.50now: 307.00

🐛 Centipede Finished - CHAMPION

BEFORE - just learning

On day one it fired randomly and let the centipede crawl right into it.

AFTER - trained

Now it aims and dodges - and it kept getting better as it trained!

Score per game 2.4x better than when it started
start: 1910.00now: 4540.00

🟩 Tetris Finished - GRAND CHAMPION

BEFORE - just learning

At the start it dropped blocks anywhere and made a messy pile full of holes - never clearing a line.

AFTER - trained

Our best Tetris AI yet! It stacks flat, clears over 1 line per game, and even works on a real phone!

Lines cleared per game 1.0x better than when it started
start: 0.91now: 0.95

🐸 Frogger Finished

BEFORE - just learning

At first the little frog just hops into cars and the river - splat!

AFTER - trained

It's learning to time the traffic and cross safely, one lane at a time.

Score per game 16.0x better than when it started
start: 8.12now: 130.00

🤖 Robotank Finished

BEFORE - just learning

On day one the tank spins and shoots at nothing.

AFTER - trained

It's learning to aim at enemy tanks and take cover.

Enemies destroyed per game 12.5x better than when it started
start: 1.00now: 12.50

🟠 Q*bert Finished

BEFORE - just learning

At the start Q*bert jumps off the pyramid and falls to his doom.

AFTER - trained

It learns to hop across the cubes and change their colours for points.

Score per game 288.0x better than when it started
start: 50.00now: 14400.00

👻 Ms. Pacman Finished

BEFORE - just learning

First she wanders into the ghosts again and again.

AFTER - trained

She learns to gobble dots, dodge ghosts, and grab the power pellets!

Score per game 15.0x better than when it started
start: 170.00now: 2550.00

👾 Space Invaders Finished

BEFORE - just learning

At first it just sits there getting blasted by the aliens.

AFTER - trained

It learns to dodge the bombs, hide behind shields, and pick off the aliens row by row!

Score per game 17.6x better than when it started
start: 57.50now: 1010.00
Built from real training data - updates as the AIs keep learning