SRL Archive - OSR Help

Puzzle Pirates Help


HardRockers

2012-06-07 00:07:22

Ok, I am going to work on a bilge bot to get my feet wet in PP scripting through Simba.

Basically, in the Bilge puzzle you are trying to make lines of 3 at a minimum to score. Bilge scoring comes from your efficiency to clear pieces. A delay of about ten seconds is acceptable when searching for a new move. A good balance of strategy and speed is best for a bilger. Combos of lines of 3x3 and greater create the best chance for higher scores.

If you don't know, here is what the bilge board looks like to start.



Uploaded with ImageShack.us



I am trying to figure out the best way to go about detecting the board as a whole to decide which move would be best for the bot. If I knew how to detect the whole board, that would give me a good start I think, and I could play with some algorithms to develop a decent working Bilge Bot.

(There are GREAT bots out there for bilge, and I own one. I just want to develop my own to say I did, and to kind of learn for tougher bots in the PP world.)

Runaway

2012-06-07 00:31:51

I would write this out for you, but I am way too tired! I'll give you an overview of what you have to do:

1) Get the size of the entire box
2) Get the size of each individual "piece" or whatever they're called
3) Make an array of the coordinates for each "piece"
4) Grab a unique color from each of the "pieces"
5) Use for..to..do loops to check each "piece" for each color to figure out which "piece" is in which spot
6) Use more for..to..do loops to find sections with a max width/height (only one or the other) of 4, with 3 of the same "pieces" in it
7) Use the mouse to click the "piece" that is separated from the two, and swap it with the one directly next to it in the direction towards the others.
8) Repeat 1-7

Jim

2012-06-07 00:51:17

I used to play this game about 4 years, I think i got ultimate rank for swordfighting and sailing until I got cleaned continuously through poker. Never knew there were bots for the game.

Kyle Undefined

2012-06-07 01:38:57

Use the grid functionality, will make it a lot easier for the coordinates of each box. This is just a suggestion to go along with Runaways post.