I'm sorry for not responding earlier. I've a busy weekend so I won't be able to code anything 'til mon-tue. Anyway, I asked my lecturer and he was very vague regarding the solution, but he said...
Type: Posts; User: jeanmarc
I'm sorry for not responding earlier. I've a busy weekend so I won't be able to code anything 'til mon-tue. Anyway, I asked my lecturer and he was very vague regarding the solution, but he said...
Thanks for your answers. I actually wrote a few randomly picked starting positions and tried to solve them each by pen and paper. I managed to solve most of them (including the one given in my first...
Sounds interesting, could you please upload/paste the source file?
Anyway, I managed to solve a few random puzzles by employing the "corners first"-method, but a few I couldn't solve. Are all...
My first example was an example given within the assignment, so I didn't solve it my self (unfortunately). The idea with corners first sounds quite good, and I will definitely try that. Thanks!
My initial thought was to brute force permutations to get the solution, but I don't know if this is really feasible. I mean, if we assume that no more than 10 transformations in a row are needed to...
I realize I should have clarified the different transformations from the beginning. Anyway:
Start:
1 2 3 4
8 7 6 5
A (switch rows):
8 7 6 5
1 2 3 4
I'm trying to write a program that transforms a user given pattern into a standard pattern as follows:
Standard:
1 2 3 4
8 7 6 5
(imagine each number as a different colored square on a...