Timeline for fifteen(1) swap tile
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 10, 2017 at 14:12 | vote | accept | user27301 | ||
Dec 31, 2016 at 12:45 | comment | added | DinoCoderSaurus | Well done. Now you can write an answer and accept it (after 2 days). That way your findings will help others who might have a similar problem. | |
Dec 31, 2016 at 9:50 | comment | added | user27301 | Now, I solved the problem. The if statement (if d%2==0) should not be inside the for loop. | |
Dec 31, 2016 at 6:24 | comment | added | Hong Ing Thorng | I kind of get what you're saying but then I had declared that if d%2==0 then swap the 2 (board[d-1][d-3])and 1 (board[d-1][d-2]). I don't think it has anything to do with k (the value from 15 to 0 ( for 4*4 board)). Can you further explain me on this? | |
Dec 29, 2016 at 14:50 | history | answered | DinoCoderSaurus | CC BY-SA 3.0 |