Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.14 KB

gameAIs.md

File metadata and controls

15 lines (10 loc) · 1.14 KB
title
Game AIs

AIs I've implemented to play games better than I can play them

This simple minimax 2048 AI plays at a very high level. Sometimes, it reaches the highest possible tile!

<iframe width="560" height="315" src="https://www.youtube.com/embed/MKE-tNw-N78?si=Hbd-qFeUJSZvmNBQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

I implemented guideline-compliant marathon Tetris in pygame that you can either play yourself or watch an AI play. I used a specialized minimax search with heuristics. It isn't optimal, but it survives for a very long time and can play at superhuman gravities since it thinks fast and uses few moves per tetrimino.

<iframe width="560" height="315" src="https://www.youtube.com/embed/NXq3ncGSBaE?si=tqCGW9Gxwdrfq47D" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>