Can a AHK script solve puzzles like CandyCrush Saga?

Post gaming related scripts
Pilkojr
Posts: 9
Joined: 08 Jan 2019, 20:59

Can a AHK script solve puzzles like CandyCrush Saga?

08 Jan 2019, 21:05

Hi all,

My first post :-)

As the title asks I guess. Can an AHK script be used to solve puzzles like CandyCrush Saga boards?

Thanks,
Pilkojr
Pilkojr
Posts: 9
Joined: 08 Jan 2019, 20:59

Re: Can a AHK script solve puzzles like CandyCrush Saga?

13 Jan 2019, 23:13

Any ideas?? Thanks
Ruevil2
Posts: 156
Joined: 14 Jul 2014, 10:39

Re: Can a AHK script solve puzzles like CandyCrush Saga?

14 Jan 2019, 10:39

AHK is 'turing complete', so the short answer is yes, it can do anything that any other language can do. A better question is, are you smart enough to figure it out?
Pilkojr
Posts: 9
Joined: 08 Jan 2019, 20:59

Re: Can a AHK script solve puzzles like CandyCrush Saga?

14 Jan 2019, 16:38

Ruevil2 wrote:
14 Jan 2019, 10:39
AHK is 'turing complete', so the short answer is yes, it can do anything that any other language can do. A better question is, are you smart enough to figure it out?
Thanks Ruevil2. That's very good to know. I'm definitely not smart enough to figure it out, but I reckon there'd be plenty around who are.
Ruevil2
Posts: 156
Joined: 14 Jul 2014, 10:39

Re: Can a AHK script solve puzzles like CandyCrush Saga?

14 Jan 2019, 17:53

Pilkojr wrote:
14 Jan 2019, 16:38
Ruevil2 wrote:
14 Jan 2019, 10:39
AHK is 'turing complete', so the short answer is yes, it can do anything that any other language can do. A better question is, are you smart enough to figure it out?
Thanks Ruevil2. That's very good to know. I'm definitely not smart enough to figure it out, but I reckon there'd be plenty around who are.
I wouldn't start with self doubt my friend. Some of these problems become easier after a little analyzing. Start with trying to write down the steps you would physically take to solve the problem with your eyes. Then try to translate that into AHK commands. I would try to throw you some ideas that might get you started but I haven't played this game in particular.
Pilkojr
Posts: 9
Joined: 08 Jan 2019, 20:59

Re: Can a AHK script solve puzzles like CandyCrush Saga?

14 Jan 2019, 18:19

I've seen scripts written in Python that apparently can play the game. I've got one of those scripts, but looking through it means nothing to me.

I'm good for an imagesearch or 2, but solving a puzzle......hmmmm :-)
Ruevil2
Posts: 156
Joined: 14 Jul 2014, 10:39

Re: Can a AHK script solve puzzles like CandyCrush Saga?

15 Jan 2019, 09:17

I took a look at the game and from what I gathered in a few minutes you would have to start with board recognition. Basically determine the board space and how many tiles you are dealing with. Second step would be to determine color patterns. After that the logic of determining the best move starts to get into a bit of a game theory area.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 1 guest