News for hackers. Stuff that matters.
Re:Making Pizza with Python by RodgerTheGreat on Thursday February 10, 2011 @09:41AM (#2202048)
If anyone's interested in doing something similar in Java or another JVM language, check out the AWT Robot[1]. It's one of those hidden gems of the Java API.

[1] http://download.oracle.com/javase/6/docs/api/java/awt/Robot....

Re:Making Pizza with Python by anthonyb on Thursday February 10, 2011 @07:53AM (#2201741)
I tend to do similar things with the games that I play, including Farmville. Once I've figured out the optimal strategy for things, I find that it's much more interesting to code it up, rather than go through the motions.

Some people consider it cheating, but I consider it more 'taking advantage of suboptimal game design', ie. if I can script it, it's likely not a very interesting game in the first place.

Re:Making Pizza with Python by cdr on Thursday February 10, 2011 @11:24AM (#2202406)
I assume by "if I can script it" you mean strategy? Every single computer game can be scripted, and most have - including poker, complex MMOs, complex RTS games, etc.

I doubt you'd find many people that'd agree that having a program play the game for you isn't cheating, no matter how boring you might find the game.

Re:Making Pizza with Python by anthonyb on Thursday February 10, 2011 @08:33PM (#2204761)
Well, perhaps rephrase that to "If I can script it with less effort than it takes to play the game..." Farmville is a case in point - they have shiny stuff like tractors to take the tedium out of playing... :\

How about they write a decent game where I have to make complex decisions in the first place, rather than clicking on buttons over and over? I wrote a fairly involved rant about it a while back: http://blog.oarsum.com/post/255516489/cheating-and-game-desi...

Re:Making Pizza with Python by kazuya on Thursday February 10, 2011 @09:16AM (#2201998)
Related:

RoboGamer uses the same interfaces human uses (i.e. video and a joystick) http://www.youtube.com/watch?v=2vH62EEfH6E

There was another project, vArashi, to achieve similar, circa 2001.

And probably you remember rogomatic...

Re:Making Pizza with Python by Sukotto on Thursday February 10, 2011 @12:00PM (#2202608)
Very interesting programming project. I'll have to give that a try sometime.

For day-to-day automation of stuff, I like to use sikuli [1] which lets you automate pretty much anything in a gui using screenshots. (Their editor is pretty cool). It's a research project so a bit rough around the edges, but still worth your time to check it out if you're at all interested in automation (auto-configuring systems, driving applications, playing flash games, etc)

[1] http://sikuli.csail.mit.edu/

Re:Making Pizza with Python by _b8r0 on Thursday February 10, 2011 @10:44AM (#2202244)
Seriously, you shouldn't have posted this. My weekends are busy enough without building gambling bots too ;)
Re:Making Pizza with Python by pepijndevos on Thursday February 10, 2011 @08:51AM (#2201921)
Could anyone upload a vid? I don't run Windows.
Re:Making Pizza with Python by johnconroy on Thursday February 10, 2011 @06:37AM (#2201590)
amazing work. Now for the pokerbot...
Re:Making Pizza with Python by wigginus on Thursday February 10, 2011 @08:32AM (#2201859)
The University of Alberta has a research group devoted to the problem: http://poker.cs.ualberta.ca/
Re:Making Pizza with Python by wladimir on Thursday February 10, 2011 @08:13AM (#2201806)
Yep, that's where the AI comes in. The screen-scraping is the easy part.