Sliding puzzle
Hi i have been trying to get this sliding puzzle to get solvable in a 4x4 matrix but it just doesnt work. I have tested the code in 3x3 and it works just fine.
14 Replies
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/$codegif
i dont get how this works the message is too big
you use the website
instead of the tags
anyways The problem i have is that Solved should be accepting that one type of color is connected with the same type for all tpyes if that makes sense. As an example 4 blue connected 4 red 3white and 3 yellow

BlazeBin - hndukpxeggul
A tool for sharing your source code with the world!
like this?
btw the colorpuzzle is what the solve doesnt work for
I assume this is sudoku kind of game?
if the colors only need to match horizontally to win
then u could go with a much simpler approach of only walking horizontally checking the colors
No its more like of a sliding puzzle game
and the color one just need to pair with the same colors
well you will have to debug it then to see where your connection is going wrong
put a break point as u move the pieces
and check the variables to see why its not giving u what ur expecting
$debug
Tutorial: Debug C# code and inspect data - Visual Studio (Windows)
Learn features of the Visual Studio debugger and how to start the debugger, step through code, and inspect data in a C# application.