Wednesday, June 04, 2008

ExtendedRobot

I liked the java.awt.Robot class so I decided to make my ExtendedRobot class and add some functionalities that I used in some of my applications.

Functions added:
  • getMousePosition: returns the mouse position relevant to the screen
  • getCurrentPixelColor: returns the color of the pixel the mouse is pointing at
More is coming, just stay tuned ...!

Bowling Buddies Bot

Hello,
I thought about writing a bot for the Facebook's Bowling buddies game.
The idea of the bot is as follows:
  • Go with the mouse to the upper left area.
  • The bot goes to the ball.
  • It presses the mouse click.
  • It moves backward then forward releasing the ball.
It's very funny and it's already working but the problem is that every time the bot holds the ball and releases it, it is launched in a different way (I think that's intended by the developers of the game) so I didn't find a good configuration that allows for always getting strikes in the game.

I'll leave you with the source code and if you found something useful that allows me to do a perfect game just tell me please.

Enjoy,