Computers, Gaming, & Technology Here you can talk about anything with circuit boards, or dilithium crystals, or flux capacitors. Show off your technology, computing, and gaming knowledge.

Ultimate Bejeweled player

Thread Tools
 
Old Apr 28, 2010 | 11:14 AM
  #1  
DTN's Avatar
DTN
Thread Starter
Moderator
 
Joined: Feb 2009
Posts: 11,732
Likes: 5
From: Leesville, Louisiana
Vehicle: 2001 Hyundai Tiburon
Default Ultimate Bejeweled player

My little brother is a programmer for a police software company which interfaces GPS with Database and what not.

In his spare time, last week, he designed a AI to actually play Bejeweled on Firefox. It does not use hacks, it actually looks at the screen determines colors, decides where to move the pieces, then clicks the appropriate jewels. He did it as a proof-of-concept project. I think it's pretty cool.

Video: http://www.youtube.com/watch?v=xikCkuNcVek
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/xikCkuNcVek"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/xikCkuNcVek" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
Reply
Old Apr 28, 2010 | 11:18 AM
  #2  
HyundaiKitCoupe's Avatar
Senior Member
 
Joined: Aug 2009
Posts: 11,992
Likes: 0
From: Washington D.C.
Vehicle: Hyundai Tiburon FX
Default

that's insane!!! but i'm not surprised, you're incredibly bright. you must be very proud!
Reply
Old Apr 28, 2010 | 12:12 PM
  #3  
187sks's Avatar
Administrator
 
Joined: Mar 2006
Posts: 12,515
Likes: 2
From: Lacey, WA
Vehicle: Two Accents, Mini, Miata, Van, Outback, and a ZX-6
Default

That's pretty cool.
Reply
Old May 16, 2010 | 02:23 PM
  #4  
DTN's Avatar
DTN
Thread Starter
Moderator
 
Joined: Feb 2009
Posts: 11,732
Likes: 5
From: Leesville, Louisiana
Vehicle: 2001 Hyundai Tiburon
Default

My brother never ceases to amaze me. My brother was able to increase the speed dramatically. This thing is performing millions of operations per second trying to determine the best move. It actually appears at one point that 4 pieces are moving at the same time, and they almost are. Basically, he was able to increase the speed by optimizing the way the program transfers information within itself and reducing procedure calls down to variables.

He let me port it over to linux, but my results were not as outstanding as his because the way it was written is designed to take advantage of certain key features within Windows which had to be substituted for others which are not fully implemented on Linux.

This is about as good as it gets, the only limitation here is processor speed.


<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/h4BiLeKjXSA"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/h4BiLeKjXSA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
Reply




All times are GMT -6. The time now is 03:17 PM.