C
C#2mo ago
petnezz

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
petnezz
petnezzOP2mo ago
$code
MODiX
MODiX2mo ago
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/
petnezz
petnezzOP2mo ago
$codegif
petnezz
petnezzOP2mo ago
i dont get how this works the message is too big
leowest
leowest2mo ago
you use the website instead of the tags
petnezz
petnezzOP2mo ago
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
leowest
leowest2mo ago
No description
petnezz
petnezzOP2mo ago
BlazeBin - hndukpxeggul
A tool for sharing your source code with the world!
petnezz
petnezzOP2mo ago
like this? btw the colorpuzzle is what the solve doesnt work for
leowest
leowest2mo ago
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
petnezz
petnezzOP2mo ago
No its more like of a sliding puzzle game and the color one just need to pair with the same colors
leowest
leowest2mo ago
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
MODiX
MODiX2mo ago
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.

Did you find this page helpful?