My Tetris AI playing Tetris. (and failing)
Вставка
- Опубліковано 11 сер 2010
- I wrote my own Tetris game a while ago and decided to make an AI for it :P
It works quite well, it has made it to around 2000 points a few times and I've only ran it for that long like 15 times.
Of course it fails too sometimes (like here). I especially found this one funny :P - Наука та технологія
Impressive!
@Benedek93 Actually it really was, I was seeding the randomizer with time(0) so at fast speeds it often had repeated blocks which gave the AI a hard time. Now I seed it with milliseconds and it has managed to get over 6000 points. :)
Actual tetris has a random bag, instead of it chosing completely random blocks fyi,
tetris(dot)wikia(dot)com/wiki/Random_Generator
So that's what programmers do when they get bored of their games. They make a program to play it for them. :D