Tetris AI System 208
You've probably always wanted a system that reads a Tetris game via a webcam, decides the optimum move, and then inputs the commands to make that move, right? Well, now your prayers are answered.
If it wasn't for Newton, we wouldn't have to eat bruised apples.
Gaming AI's (Score:1)
Re:Gaming AI's (Score:2, Funny)
Re:Gaming AI's (Score:3, Funny)
Oh but... (Score:5, Interesting)
Re:Oh but... (Score:2, Interesting)
Re:Oh but... (Score:5, Insightful)
Being NP-hard means there are no existing polynomial-time algorithms to find the *optimal* solution. That doesn't mean it is impossible to write a program that can find *good* solutions. Moreover, NP-Hard problems get really impossible for higher instances. For small instances of NP-Hard problems, brute force search is still feasible.
Another point is that the article you mentioned discusses a restricted version of Tetris.
Read the slashbox!!! (Score:2)
If you read the slashbox, it says:
Therefore, he original poster is precisely correct. Good attempt to discredit, though.
Re:Oh but... (Score:2)
(They don't play normal tetris... they also tend to assume that some sides of the pit are unbounded)
Re:Oh but... (Score:2, Funny)
Confuses me everytime, maybe i've been abusing irc too much..
They didn't SOLVE it... (Score:5, Informative)
I'm not really sure how you'd use Tetris to prove P=NP, but it probably has something to do with making an AI that could play forever and never lose, and further be able to prove that you could never lose, which is probably even harder than making the AI!
Re:They didn't SOLVE it... (Score:4, Insightful)
Not impossible... (Score:5, Insightful)
That's a very interesting result to say the least! Well I guess it's interesting if you're a math geek like myself at least......
Ben
Re:Not impossible... (Score:4, Insightful)
Given the fact that all digital devices are deterministic finite state atomotons and random behavior is non deterministic, given a set of states the probability of a state transition is equal for all states, isn't it impossible for a digital device to act randomly? I know computers can generate random *enough* numbers but by what measure?
Re:Not impossible... (Score:2)
a) be able to contain references to itself
b) Take at least the same amount of mass that the universe contains to store the informatinon - hence a little logical problem)
But since we're probably talking about pure computer (mathematical) devices, this don't apply.. (-8
Re:Not impossible... (Score:2)
Not according to Heisenberg [aip.org].
Re:Infinite Monkeys (OT) (Score:2)
First of all, my
But inifity set aside, any number of monkeys could, given enough time, write both one and two copies of Hamlet. Even one monkey, with a rate at one keypress per second could do that, if you just give him some time. The hard part is finding out where Hamlet starts, and where Macbeth ends.
But there would be some troubles in feeding the monkies. You'd have to have an awful lot of bananas.
Re:Not impossible... (Score:2)
You can never play a non-losing game because the "win" is open-ended. Even if you play for a million years and never loose, you still havn't had the never-loose game. In an infinatly long game, the probabiliy of encountering the S or Z sequence is 1.
Re:Not impossible... (Score:2)
See that is the difference between conventional thinking and mathematical algorithm analysis. Consider an algorithm A that sorts numbers. Let us assume it can correctly sort all possible permutations of the numbers except one. Mathematically the algorithm is wrong. By extension, if no algorithm in the world can sort a particular permutation correctly, we can claim that an algorithm for sorting does not exist. Similarly here. If there exists a condition where you cant play indefinitely, no algorithm exists to play indefinitely.
Re:Oh but... (Score:4, Interesting)
In this case, the machine-vision problem of recognizing blocks with a camera (which inserts distortion and uncertainty to the image) is an interesting challenge on its own.
While viewing a computer screen is easier than most MV problems (the target is self-illuminated, so variable lightsource angles are less of a problem), it could have useful future applications. Especially if someday we're beset by hardened DRM computers that don't allow you to interact programatically- mouse input and LCD output only!
Then the practice of watching a screen with the camera of your PDA might become the only way to take controlled files off those machines.
(Watch the "Ghost in the Shell" movie for bizarre examples of this)
The New 4th law... (Score:5, Funny)
2. A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.
3. A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.
4. A robot must never place the long skinny ones horizontally, unless it leads to a long skinny vertical hole so 4 rows can be cleared at once the next time a long skinny one comes around.
Re:The New 4th law... (Score:5, Funny)
I thought Directive 4 was that any attempt to arrest a senior officer of OCP Corporation would result in immediate shutdown!
GMD
Re:The New 4th law... (Score:2, Funny)
Oh geeezzzz, get real...
That sort of stuff only happens in the movies.
Those damn skinny pieces (Score:4, Insightful)
Damn skinny pieces. Always my downfall.
Re:The New 4th law... (Score:2)
Err, wasn't that actually the Zeroth Law [freeserve.co.uk]?
Wow! (Score:5, Funny)
Re:Wow! (Score:4, Funny)
Re:Wow! (Score:2)
Re:Wow! -- DOH! (Score:2)
Re:Wow! (Score:1)
Re:Wow! (Score:1)
Re:Wow! (Score:2)
Re:Wow! (Score:2)
I mean, if I were the one that made something like this, I'd be proud as few, and get a lot of recognition from my (male) geek-friends. But would it attract the girls? *sigh* It sure ain't easy.
Re:Wow! (Score:5, Funny)
A really useful tool... (Score:5, Funny)
Re:A really useful tool... (Score:2, Funny)
http://progressive.stream.aol.com/aol/us/aolenter
Re:A really useful tool... (Score:2)
Re:A really useful tool... (Score:1)
I know, I know (Score:1)
But if it's not ridiculously convoluted, converted to analog and back to digital data along the way, and (relatively) expensive, it's not fun, right?
Great For Super Geeks (Score:4, Funny)
That is until he beats you 27 times in a row and you throw your controller at his camera-head and cause him to crash.
Tetris Setup Photo (Score:5, Funny)
Damn cheaters (Score:2, Funny)
amazing (Score:3, Interesting)
It's all just recognizing an on-screen situation and responding to it with key presses and mouse movements. Best of all, it doesn't rely on application developers to build scripting into their programs. It's a universal, platform-independent macro system.
My people could put such a power to heroic use.
Re:amazing (Score:4, Interesting)
Re:amazing (Score:2)
Grab.
As my Favorite Family Guy Character would Say (Score:4, Funny)
Penny Arcade movie suggestion (Score:5, Funny)
It's like you're inside my head ... (Score:4, Funny)
Of course, you're also telling me to pick up a halibut and run through the workplace smacking coworkers upside the head as way of instructing them in Esperanto. I think I'll try and ignore those instructions, this time.
man... (Score:1, Insightful)
Sure, his project's impressive (Score:3, Funny)
*nix.org [starnix.org] - Featuring BSD, Linux, OS X, Solaris, & More
But the point is... (Score:2, Funny)
Re:But the point is... (Score:1)
Plays to Much Tetris
Robotic (Score:4, Interesting)
This is the kind of thing that people spend a lot of money on, and even if it is kind of crude, visual sensors combined with logic that works is a Good Thing(tm) indeed.
Re:Robotic (Score:2)
Why didn't he just buy a keyboard, and wire the left,right,up,down keys to the parallel port?
Whole thing would have cost, ooh, about $10 including the keyboard.
Btw, I did this with some remote control cars and a remote control panther
Re:Robotic (Score:2)
POV Tetris (Score:3, Funny)
Re:POV Tetris (Score:4, Funny)
if you move downward any fartheryou will be eaten by a grue
you were eaten by a grue, please try again.
(yes, mod me down, but it's still damn funny!)
Geom Cube (Score:4, Informative)
"You are looking down a deep chute, falling towards an irregular field of colored squares ...."
Is 3D Block for NES [64.53.95.207], 3D Tetris for Virtual Boy [defunctgames.com], or Geom Cube for PS1 [gamezero.com] close enough to what you want?
Right On (Score:2)
AI? (Score:2, Insightful)
Mod me to troll of you like but this is not AI.
Re:AI? (Score:2, Interesting)
Re:AI? (Score:2, Insightful)
Its not like its trying to guess what move a human is going to do next then place a piece.
Your view suggests that playing two-player games like Chess is the only application of AI. Although this is the most popular application of AI, it also has various applications in problem solving, belief networks, fuzzy control, theorem proving and lots more.
I dont think so. Just a lot of caculations.
Actually every application of AI is just a lot of calculations. Even when a human plays, the neural networks inside the brain does just a lot of calculations based on wieghts to make the move.
Re:AI? (Score:4, Informative)
"Practical" AI is having a piece of machinery that has been programmed to take a limited set of input, perform some action, then repeat to infinity. The robots that manufacture cars do this, and this tetris bot does this.
"Sentient" AI is probably more what you're talking about. It handles language processing, making inferences, stuff like that.
It is intelligent in that it can do a task without human interaction, so yes it qualifies as "AI".
Re:AI? (Score:3, Interesting)
So once natural language processing becomes 'easy' it won't be AI any more, but will be just another algorithm.
At least that's what my AI lecturer used to claim
Next generation of cheats (Score:3, Interesting)
It may be cute seeing a second computer play Tetris now, but so was the first time someone had a bot improve their aiming in Quake.
I've read speculation before that equipment like this would probably eventually be used to cheat on systems like Xbox Live - It's a bit too soon for that, but in the years to come this could very well be the way cheating is done.
Re:Next generation of cheats (Score:2)
Not to get too far off-topic, but cheating in a game like Counter-Strike is only cool for about an hour or so. For one, everyone on their is so paranoid of cheaters that odds are you will get called on it, and immediately your victory will be written off. On top of that, it get's boring fast. Why even play? Just don't load the game, assume you won, and play something else. Games like this really have no purpose in cheating. The REAL good application for this would be to make a program that auto-controls an MMORPG character. Imagine getting it to the point where the script would run your guy into a field, locate a similar leveled mob, fight and kill it, loot the corpse, and go sit back down. Add some code so it could handle unwated mob adds, PKing, etc. You could have your guy level while at work and use your time for raids and other more fun game things. That's something I'd be damn interested in.
Re:Next generation of cheats (Score:3, Funny)
Best Counter Strike scene I've witnessed was somebody going idle to go eat. He tells everyone he is going away but forgets to turn his aimbot off. For a half hour he was completely idle and managed to get about 25 kills.
Re:Next generation of cheats (Score:2)
The server went apeshit with calls of cheating, and it was obvious as day he had, but damn funny none-the-less.
Benefactor of mankind--thank you! (Score:4, Funny)
Thank you! Thank you! Thank you!
Re:Benefactor of mankind--thank you! (Score:2, Funny)
The begining... (Score:4, Interesting)
Take it a step further (Score:5, Funny)
Never mind. It may not be that great of an idea
Artificial Intelligence (Score:3, Interesting)
Whoever wrote the artificial intelligence algorithms for 3DRealms' Duke Nukem3D multiplayer-mode "Fake Duke" deserves more recognition than anyone.
Those of you, like me, that were stranded to play by yourself and had no internetwork-ed access to deathmatch with others, know what I am talking about in Duke Nukem3D. How it worked was the game simulated a multiplayer game and was pre-set to "spawn" fake players. The AI system was in effect actually more "unforgiving" than say Unreal Tournament or Quake3. The "Fake Duke" was intelligent to hunt you down based on line-of-sight and quite naturally if he had to run through a laser beam or a lava pit he'll do it all while keeping his "+" (cross-hairs) painted on the center of your forehead. The AI was limited and I think a more accurate project for AI would be to actually host an AI service that offered network-accessed primitives for supreme entropy to contribute to a work of data; such centralized AI system would allow gamers as well as scientific computing to benefit from a verry good entropy pool of numbers as well as improve the funfactor of gaming.
Instead of this, we have many skilled people having to roll-their-own; not implying they are effectivly wasint their time/resources, yet let's keep our eyes on the prize on what a real system of "sharing" (distributed) can do for the many simulations upon computers that can benefit by a shared resource (thinking AI and entropy) as well as contribute to a centralized AI generator. I know SETI would benefit from such a noble cause, rather having to role-their-own client (software) and have their client (software) wastfully "leech" idle resources of computers around the world. It comes to that conclusion of efficiency, in a sense. Perhaps distributed computing across the internet is a real plan that would benefit from being re-thought. Don't let me fool you: Microsoft is attempting this feat; maybe someone has already started working on this! Doh! Someone recognize the inherent corruption that can ensue if a corrupt organization was holding licenses for your obligation to use their distributed resources as being a client for an applications service provider!
Am I the only one to confirm these truths or forever does everyone hold their peace?
Re:Artificial Intelligence (Score:5, Funny)
Y'know, I read through that several times, and I still don't know what it says. I'm pretty sure the poster didn't either.
Re:Artificial Intelligence (Score:2)
That's because it was done by a
Classic Slashdot (Score:4, Insightful)
Great post.
No Microsoft bashing, no debates about IP, distributions, no whining.
Serious, hard-core, geek shit.
Geek takes computer, does something incredible, writes up an wonderful web page, perfect.
Re:Classic Slashdot (Score:2)
I'd like to try this and see if I can get mine to do more than 600 lines. Maybe we could get a competition going to see who can build the best tetri-bot and what things make it work better/worse or are just fun.
It's a nice change from the computerized chess stuff we keep hearing about. Until I'm able to beat the chess game I have on even the easiest setting, I don't want to hear about bigger and better chess computers. But I'm pretty good at Tetris... so this is cool.
Where are the IN SOVIET RUSSIA posts? (Score:3, Funny)
We actually need them in this article!!
I am not as impressed... (Score:5, Interesting)
Re:I am not as impressed... (Score:2)
Having a 'generic' solution that could be activated 'mid-game' would surely be much more complicated.
It'd also be interesting to know if there's anything done (maybe at a lower priority) to check that the situation on the 'slave' machine is the same in terms of pieces down (I'm thinking of, say, a keystroke not registering).
Also this 'visual' tetris should be, IMHO, handicapped the same way a player is in terms of knowing exactly where a piece will drop: it does happen to everybody sooner or later to press the 'drop' key and immediately go *&%&)!)$@! because the piece was really one column left/right of where you thought it was (obviously whether it's left or right depends from which side would be the worst possible case scenario, Murphy's law applies to tetris as usual).
Stuff that matters (Score:2, Funny)
Yes.
Only a couple more steps. (Score:5, Funny)
If I may humbly suggest a few design improvements as you continue to develop the item:
1) Remove the electrical connections, and have it physically press the keys of the keyboard with a robotic arm of some sort.
2) Make it mobile, so it could, for instance, go in search of a tetris game, if it gets bored.
3) If it sees a tetris game being played, but doesn't have access to the keyboard, it can verbally (with synthesis) tell the player what to do. "left! left! rotate! rotate! drop!"
4) Trash talking. "I can't believe you dropped that there! What are you -- a carbon-based unit? go back to playing pong, you binary digit."
4) Global Thermonuclear War.
They Play Tetris... (Score:2)
or is it, in Soviet Russia, Tetris plays you?
no, the KGB playes you in Soviet Russia...
hmm...
Re:They Play Tetris... (Score:2)
Chess Playing Robot (Score:2, Informative)
unfortunately, their website sucks badly. May be they need some help building one. That was a really fabulous place to work at, with scores of smart people.
Re:Chess Playing Robot (Score:2)
It used magnets under the board to drag the pieces. What was cool was watching a knight move where it had to move another piece out of the way and then back.
Jason
ProfQuotes [profquotes.com]
All in all a great webiste but... (Score:2, Insightful)
But one part sounded a bit wrong to me. I may be wrong myself, but...
I don't know if thats accurate. I mean, Pajitnov (and the other guy) was in the Soviet Union,[1] after all. I don't know if "selling" computer games would have been so easy. I thought it went that the game was written and then handed around the "Computer Center of the Russian Academy of Sciences." Then it got past the Iron Curtain, and then was distributed as freeware for a while until big companies (Microsoft, Nintendo) realized that they could make big bucks releasing a legal version of the game.--
[1] In SOVIET RUSSIA, Robot controls Tetris! [2]
[2] Shut up. It was revalent. Now, if I had said the Simpsons quote: "In Soviet Russia, stage for actors only!" It would not have been.
Recognition is key... to card counting (Score:4, Interesting)
A wide-angle lens ought to be able to pick up the whole table. Watching cards being laid down is relatively easy -- surely no harder than seeing pieces fall down the screen. Then just ID the cards, keep a running total, and put a piezo buzzer in the glasses' arms to let you know when to bet big and when to get the heck out of there.
Maybe a camera in the rear also, to spot pit bosses?
Problem is... (Score:4, Informative)
Let's say you're using a well-established counting method like hi-lo, or something like it of your own devising. Given that this is Slashdot, the latter is probably more likely, regardless of whether or not it's actually any better.
So whatever your system is, you have a hot shoe at this table. Your computer is buzzing your arm or shocking your ass or whatever it does to get your attention, and you want to abruptly drop a set of big bets to cash in on the improved but fleeting odds your computer has identified. You're going to get some unwanted attention if over the course of a few hours you "randomly" drop a big pile of chips in the center of the table a bunch of times. Particularly when you keep jerking up from the table as if you've been shocked in the ass.
That is, unless your system has some method of wager management that lets you blend in while reacting quickly to good odds. That seems pretty tough.
Maybe the computer could establish what appears to the casual observer/dealer as an idiotic, repeating pattern of wager quantities, thereby identifying you to all around as a grade-A moron and eliminating alarm when you change your betting quantities abruptly. Many easily recognized patterns would suffice. By changing these patterns in only moderate ways, it could be possible to eke out smaller but still positive expected returns than in elementary, obvious-to-keen-eyes card counting. You'd have to stick around the tables for a long time, though, to take advantage of a razor-thin advantage.
Oh, wait, that's how I do it. Albeit without computer assistance or the anal probe. So I guess I shouldn't have posted this.
Anyway, good luck building the glasses!
Everything leads to pr0n... (Score:3, Funny)
Fortunately, for the gene pool, he's finding that this problem has no solution, but mostly due to personal limitations.
What? No duct tape? (Score:3, Funny)
uh...overengineered. (Score:2)
Such a way would make this engineers team much easier.
But I think that given the simple nature of this tetris game, that you could have actually relied on the "import" (part of imagemagick) command to accomplish this.
So...tetris dorks--
I want more ! (Score:2)
I don't care about the webcam: it can directly read memory video, or take snapshots of windows and then parse the pixel matrix. But I want good pattern recognition, possibly learning by examples, automatic control over mouse keybord and a way to define/intercept game events.And of course a programming language to glue all toghether.
(*I did not actually observe the infinity case.) (Score:2)
Tetris AI Madness (Score:4, Funny)
Even my tinfoil hat can't stop it from reading my mind.
Anyone tried a programmable game controller? (Score:2, Interesting)
My roommate already has (basically) a universal arcade stick that he made himself -- has interfaces for connecting to PCs, Sega Dreamcast, Playstation, PS2, Nintendo 64, etc. I figure all I need is a way of controlling the device by basically pressing switches.
My problem is that I don't know any way of doing this cheaply (the piece of hardware used by the guy in this story is over $100). I was thinking of maybe using the parallel port, which has 8 data lines, but that's not enough lines for newer systems and I'm not sure it would work anyways.
Does anyone have any ideas on how this might be achieved? It's kinda coincidental that this article popped up today since I just thought about this for the first time in months earlier today.
Re:Anyone tried a programmable game controller? (Score:3, Interesting)
However, I'm not so sure that simple playback of keyboard combinations would be good for anything but leveling. The dedicated programmable pads in vogue several years back were quite gimmocky, and was less responsive than was acceptable for fighting games at the time. Since then, fighters have gotten significantly faster, and even more picky about timing issues. It's easier just to imput the gamepad commands yourself.
This is not to say that programmable controllers don't have their place... a programmable controller took my Castlevania: SOTN character to level 92 in just under a week. Programmable controllers [thinkgeek.com] continue to exist, and can had for a reasonable amount of money.
But the problem with visual recognition on modern 3d games is staggering... MIT has entire departments devoted to similar topics. You might be able to do it if you could convince the game to output stereoscopic images, (there was an article recently on a stereoscopic voxel technology), but a subsection of this sort of problem is what you would write your doctorate on. If you can get your hands on the base textures for the game, and redo the graphics engine to give depth and object clues along color lines, you could do it. But not as it stands, and not to a remote box.
But a little controller hacking is always fun. Good luck!
Respect! (Score:2)
I can say that, i think. I connected my tv's on/off to the rs232 of my computer.
Why? Ths choise was simple. I had no remote on my tv, so this was a practical solition
Wait a minute, something doesn't look right! (Score:4, Interesting)
The only problem is the red square is in the way. There's no way you can drop that piece into that space and make three lines disappear. Something's fishy.
What I'm talking about is illustrated here [photoisland.com].
Get organized man! (Score:2)
Re:My Tetris Gnome plans finally come to fruition. (Score:3, Funny)
Stage 2: Play tetris for money [worldwinner.com]
I hear they have a very harsh anti-cheating policy there (i.e. they'll freeze all the money in your account and ban you if they even suspect you of cheating) but hey, it's still tetris for money.
nlh