All projects

Search · Heuristic evaluation

Tetris AI.

Choosing Tetris placements by evaluating the board that each move leaves behind.

Inside the project

Images and demonstrations.

The idea

Candidate evaluation

Look beyond
the next piece.

Holes · Bumpiness
Gaps · Height

Compare the current placement and a second move.

Recreated illustration · not a live run of the original agent

My contribution

Developed a two-step-lookahead agent using weighted board heuristics, including holes, bumpiness, gaps and height.

Result

Achieved second place among approximately 200 students.

Technology and methods

Two-step lookahead / Weighted heuristics / Board evaluation

Technical approach

The agent considers a placement and a subsequent move, then compares board features through a weighted heuristic. The recreated illustration explains the features; it does not run the original agent or reproduce its exact weights.