How do I make a 15 puzzle while being able to change it's size? Ex . smaller or larger | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How do I make a 15 puzzle while being able to change it's size? Ex . smaller or larger

20th Oct 2016, 11:45 PM
bluerose13100
bluerose13100 - avatar
3 Answers
+ 2
It'd be too complex to explain over here. Your best bet would be to Google for code examples/tutorials.
22nd Oct 2016, 2:07 AM
Liam
Liam - avatar
0
Elaborate more on this topic please.
22nd Oct 2016, 12:54 AM
Newuser Noob
Newuser Noob - avatar
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
22nd Oct 2016, 1:14 AM
bluerose13100
bluerose13100 - avatar