22 points · by RC1140 · 14y ago · 13 comments
When I was in college, I came across a gambling strategy for online roulette. I tested it for a few weeks but I gave up on it as it was extremely boring and tedious, even though it seems legitimately profitable. A few years later I heard about bots that automate poker and so on, so I looked at tools that I could use to code up the roulette strategy to play it automatically. I looked into AutoIt and wrote some scripts, but the code ended up being beyond my ability to write, as my knowledge of AutoIt starting out was zero. Even a relatively simple game like roulette (only 37 supposedly random possible outcomes on a European roulette table) ended up having bot logic that was quite complex.
However a few weeks ago I came across this excellent article:
http://active.tutsplus.com/tutorials/workflow/how-to-build-a...
So I looked at re-writing the bot in Python instead. Turns out that writing it in Python is FAR simpler than AutoIt, and the code far simpler to figure out. Even though I had close to zero knowledge of Python starting out (learning Python really quickly by using it to build a real project, rather than learning Python theory first.) Now my bot is about 90% complete, just a couple of steps away from having a working (potentially profitable) bot.
Really cool what you can do in a few weeks in Python from a standing start.
Ignore my shameful, newbie-ish coding practices in that tutorial..
How did you get interested in automating web games? What is your background? Any other interesting projects you are cooking up?
I find the whole area of automating tedious human-driven actions fascinating. If the roulette bot works out, my next project is going to be automating spread betting/forex trading or perhaps some sort of sports betting arbitrage. Loads of possibilities out there in my opinion.
ps. If I end up 'making bank' as a result, let me know where I send the cheque as a thank you. My email is in my profile ;-)
No cool projects yet. There is a bot that I've been really wanting to make, just because I can't get past the stupid 4th level, but it requires a bit more brain power than I currently have..
Speaking of which, if you're interesting in the computer vision-y stuff check this out: http://www.udacity.com/. They're having a class on programming a robotic car. It looks like it will touch on some pretty neat vision stuff.
I think it was the first thing I wrote that drove home the power of having a REPL for exploratory programming:
But there is something very fun in developing scripts that moves your mouse around and play for you. I like that game much better :)
http://stackoverflow.com/questions/1686975/choosing-a-window...