Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Bejeweled Blitz Bot

Yesterday (?) someone posted a video of a Bejeweled Blitz bot, getting a monsterscore of over one million points.
I was thinking wether it would be possible to make one in VB.Net and turns out it wasn't even that hard.

My highest score I reached was 884900. Perhaps with some tweaking it could get more, but meh, my job is done here ;)

[img]http://img1.uploadscreenshot.com/images/orig/3/8405072566-orig.jpg[/img]

[youtube]http://wwwyoutube.com/watch?v=oUce3wx-wdQ[/youtube]

Perplexity's code looks neat and tidy. While my code is understandable, I'm pretty sure it won't be very easy to change things. Once you know how it works though, it will be easy to change things.

There's a weird bug I can't seem to get fixed. Sometimes the bot becomes slow and doesn't seem to solve any patterns.
Also, special gems (powerups, multiply thingies, ...) don't get detected, so that may cause the bot to stop. Just solve a move manually to let it continue.

Download the source here: http://www.mediafire.com/download.php?s9znbmwlznso712
(Feel free to improve my bot, but credits would be appreciated.
(Mar 25, 2012 10:34 AM)Perplexity Wrote:  Also, yours doesn't automatically detect where the game is located ;)

Haha, relax, I'm just kidding 😁
I know yours is better, I love the autodetect, but you have to admit, my score was higher :D
Haha I had a nice score again: [img]http://img1.uploadscreenshot.com/images/orig/3/8404455197-orig.jpg[/img]
I'm trying to improve my bot, I'll update when I made some progress (I have, but not enough to update).
Bot doesn't do anything?
I opened the exe in debug folder, then set bounds and tried to click solving on, but nothing happened.
(Mar 25, 2012 10:59 AM)hoilori Wrote:  Bot doesn't do anything?
I opened the exe in debug folder, then set bounds and tried to click solving on, but nothing happened.

The location has to be spot on. Start the game (where you see the gems) and move it so the preview matches the gems.

BTW, new high score after some more improvements :D
[img]http://img1.uploadscreenshot.com/images/orig/3/8405072566-orig.jpg[/img]
Very good bot program, good work mate.
(Mar 25, 2012 12:32 PM)Kallelzza Wrote:  Very nice program, good work!
But where the heck did you learn all that stuff and only thing I saw in the source was like 1 + 2 40 (y - x( -1)) / 11 x / y = solved
O_O you must be genious

Hahaha :P
It makes perfect sense if you look at how it works.

1. The board is 320x320 so each "block" is 40 pixels in height and width.
2. You store everything in a 2D array, so you can check each block like this: NumGrid(x,y). Each number represents a color.
3. You recognize the patterns. Pretty basic math, really.
4. Found a match? Drag the mouse using the DragMouse sub.

That's all there's to it :)
Some good shit, nice work dude! These kind of things are pretty cool.
(Mar 25, 2012 02:44 PM)H3x0S Wrote:  Code is incredibly messy. it can be done with like 80% less code.

The code is poor at best. Really is reused again and again.
(Mar 25, 2012 03:11 PM)Perplexity Wrote:  If you don't like the code, you guys can look at mine :3

Then post it up. How can we view it if there is no link?
(Mar 25, 2012 03:13 PM)ident Wrote:  Then post it up. How can we view it if there is no link?

He made a topic before this. If I remember correctly it had a link to the source.
Asking a member to PM the OP for the source is kiddy crap
i wait with baited breath

PM settings have changed
(Mar 25, 2012 02:44 PM)H3x0S Wrote:  Code is incredibly messy. it can be done with like 80% less code.

I know. I even said it in the start post. My goal was to get a fast working bot, not to make a super-accurate bot that's super tidy and stuff.
It works, how about yours? 😅
Looks really proffesional and nicely done. Good job.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by PerplexityAug 6, 2019 03:04 PM 11 849 Aug 6, 2019 03:04 PM
Last Post: 0o0will0o0
[.NET] by JireMay 3, 2013 01:39 PM 2 270 May 3, 2013 01:39 PM
Last Post: Cornflower Blue இڿڰۣ-ڰۣ—
[.NET] by PerplexityMar 18, 2013 02:31 AM 116 6,035 Mar 18, 2013 02:31 AM
Last Post: Hyptonix