Hello everyone, I'm new here and I just sign up cause I thought this would be the best place to solve my doubt.
If that's the wrong section or wrong place at all, just point it out and maybe give me some directions.
I'v been developing a simple game that consists of a game similar to a sliding puzzle.
I create a matrix (actually a table) of numbers, shuffle and re-order them using few restrictions.
To order them:
I allow placing an external element beside another side-element of the matrix (or even on top/bottom)
Then pushing it and letting the element on the opposite side going out
E.g. on a 3x3 matrix
external = X
7 8 9
4 5 6
1 2 3
Placing and pushing the X beside the 7:
x 7 8
4 5 6
1 2 3
external = 9
Till now I realized that some situations are not possible to solve if I simply shuffle the numbers.
I was wondering if it would be possible to get an algorithm to find if a puzzle has a solution, or to find out how to achieve a specific movement.
Eg.
from
12
34
How can I obtain:
14
32
I tried looking around for similar puzzles without achieving much. I guess I don't have enough mathematical competencies but I would like to find out more about it.
P.s. If I was not clear enough, and I'm allowed to post links without spamming you can have a look at the images of the real game here which are not represented by numbers, but by parts of an image.
If that's the wrong section or wrong place at all, just point it out and maybe give me some directions.
I'v been developing a simple game that consists of a game similar to a sliding puzzle.
I create a matrix (actually a table) of numbers, shuffle and re-order them using few restrictions.
To order them:
I allow placing an external element beside another side-element of the matrix (or even on top/bottom)
Then pushing it and letting the element on the opposite side going out
E.g. on a 3x3 matrix
external = X
7 8 9
4 5 6
1 2 3
Placing and pushing the X beside the 7:
x 7 8
4 5 6
1 2 3
external = 9
Till now I realized that some situations are not possible to solve if I simply shuffle the numbers.
I was wondering if it would be possible to get an algorithm to find if a puzzle has a solution, or to find out how to achieve a specific movement.
Eg.
from
12
34
How can I obtain:
14
32
I tried looking around for similar puzzles without achieving much. I guess I don't have enough mathematical competencies but I would like to find out more about it.
P.s. If I was not clear enough, and I'm allowed to post links without spamming you can have a look at the images of the real game here which are not represented by numbers, but by parts of an image.
Last edited by a moderator: