Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Tetris Artificial Intelligence (AI) #2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
17,457
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 13, 2009

This is my second attempt in producing AI for Tetris.

Grid size is 10x20
I made this in Python
It almost always does more than 1000 lines, and most I've seen it do was about 5000. Unfortunately I don't possess enough computing resources to have it learn more and fine tune the parameters as much as I'd like, but this will do for now! :)

music: Tetris by 2am

Category:

Entertainment

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (badmephisto)

  • Is this speed up or in real-time?

  • @PeopleR2sensitive its fo' real

  • does this operate off of a simple possible placement evaluation scale?

    Where placements are weighed, and then the highest value place is chosen.

    The weight would likely be based on height, and snugness.

  • @TheReasonWhyGuy yep, from experience I came up with a bunch of metrics for whats good and whats bad about placing anything at any spot. The "learning" here is just finding what weights give best performance. It's not nuclear science indeed :) still works pretty well, but I'm sure it's possible to do much better. 

  • LOL at the 2x2s on the left side around 1:06

  • i thought it was funny too :) but I do believe it to be the optimal thing to do in that case, to just stack them up out of the way. So i was happy that the AI thought so as well

Top Comments

  • Great. Face this against bastard tetris (a tetris make which calculates the worst piece you can get on your next move). See who the victor is.

  • COOL TRACK

see all

All Comments (116)

Sign In or Sign Up now to post a comment!
  • A source of the song is TETRIS song 2pm remix

  • is it possible to see the source code? I'm new at AI and would really like a little peek inside this

  • This is still cool after a year of discovering this vid lmao

  • Awesome!

  • ICH VILLE

  • awesom song

  • Random awesomeness of the day!! I would love to take a look at source code for this if you would like to share. I found a Tetris AI written in Pascal on sourceforge, but I'm more familiar with python so i would love to learn from this if possible. thanks for distracting me from the tedium at work!

  • Wish I could play like that. Coach was right, it's not my circumstances, I just suck ;-;

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more