by patrickk · 14y ago · 0 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.
On a slightly tangential note, I'm blown away when I look at the learning resources on the web in the last year or two. I largely learned the (admittedly rudimentary) iOS knowledge I have from the Stanford U course on iTunes[1]. Then you look at things like Udacity, Coursera and Khan Academy. In the case of the self-driving car course, you are getting a world-class computer-science education, free, from one of the foremost experts in AI, all from the comfort of your own bedroom. We might not have flying cars yet, but you can get a world-class education for free! The times we live in.
I'd also encourage you to do more write ups on your bot experiences! You have a knack for explaining things well. I'm toying with the idea of doing maybe a series of YouTube videos or blog posts myself once my Python skills get above the level of being totally embarrassing ;-)
BTW, here's a link for a series of blog posts on how this guy builds working poker bots:
http://web.archive.org/web/20090608115755/http://www.codingt...
http://web.archive.org/web/20100130074034/http://www.codingt...
(Had to put it through the wayback machine as some current employer of his persuaded him to take the content offline!) Not sure if it's something you would be interested in, but have a look at some of the content. He goes through using Monte Carlo simulations and everything to aid decision making. Very C++ and Windows based, but have a look nonetheless, there may be transferable concepts to your own projects.
[1] http://itunes.apple.com/us/itunes-u/developing-apps-for-ios-...