Δευτέρα 17 Μαΐου 2010

Airline Mogul FTW!

Ever heared of Airline Mogul? It is a very addictive browser based tycoon game where you have to manage a virtual airline. You start with a small airplane, fly some routes with it to make money which will be used to buy bigger planes to fly more routes that will make more money and so on. (It is way more complicated, but I am not writing a game review) The game is very intresting, especially if you are intrested in managment games and aviation.
Last summer I used to play it a lot. But as I had around 50 routes, I found out how boring AM could be. At some point, the competition got so strong I had to reduce my ticket prices every day in order to keep my flights fully booked (and maximize the profit). So every morning I used to spend 45 minutes in finding the optimal fare for every route (If the game used AJAX all this would be much faster). A few days ago, I started playing again, but to avoid boredom I had the following choices:
1) Not to play at all.
2) Play, but only fly routes that had no competition (that goes with being a loser)
3) Write a script that optimizes the ticket prices for me!

And guess what I did...
The script is written in php and uses curl. It logs in, selects a world, finds out which routes need optimization, calculates the best fare and sends it to the server.

And I'm so proud of it!

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου