Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Infinite swap lock #6

Closed
hrt opened this issue Jul 29, 2017 · 1 comment
Closed

Infinite swap lock #6

hrt opened this issue Jul 29, 2017 · 1 comment

Comments

@hrt
Copy link
Owner

hrt commented Jul 29, 2017

If you look 3 moves deep and there are only ever 2 combos, the first move you do can be anything since it doesn't affect the game in anyway (assuming the first move is the non combo).
This causes an loop of doing nothingness..
example board
DFBCFC
DADCAE
AEEBFC
BCFDBB
CCZEAC
EFFDEA
DECACB
ADDCEF
EBDFEB
BFACBE
ADCEEX
DACBBD

@hrt
Copy link
Owner Author

hrt commented Jul 29, 2017

Fixed on commit b61358b ,

Now moves are ordered in such a way that highest scoring moves are done before lesser scoring ones to ensure that you do not go in a loop of lesser scoring moves.

@hrt hrt closed this as completed Jul 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant