- 1
How do I make a 15 puzzle while being able to change it's size? Ex . smaller or larger
3 Antworten
+ 2
It'd be too complex to explain over here. Your best bet would be to Google for code examples/tutorials.
0
Elaborate more on this topic please.
0
Well ok, I'll try to. If you aren't familiar with the 15 puzzle then there is a Wikipedia page about it. So what I'm trying to do is create this puzzle that can be customized to an n-puzzle which means that it can be either increased or decreased by way of typing in the number of rows and columns through text boxes. There's also a generate button that randomizes the puzzle every time it's clicked. My puzzle is on a grid made up of buttons, and shouldn't be hardcoded to a maximum number...idk what else to say