I have tried coding this myself using ur code as a reference..(not wanting to copy and paste).. however once the puzzle is randomized and printed to the screen at the start of the game, it is hardly jumbled at all. Done the same as you, looped a million times to make a ridiculous amount of random moves to hopefully jumble it up a bit.. but it doesnt seem to be doing much at all! I got annoyed and copied ur exact randomize function, and still the same result.. any ideas?
Brilliant code work ;). Too bad the puzzle this is based on is impossible. The original 14-15 puzzle, as popularized by Sam Loyd, had the last two tiles, the 14 and 15, switched and the puzzle was to switch them back. Thanks to a mathematical principle called parity, it's impossible - but the people who wanted the $1,000 prize money didn't know that ;).
I have tried coding this myself using ur code as a reference..(not wanting to copy and paste).. however once the puzzle is randomized and printed to the screen at the start of the game, it is hardly jumbled at all. Done the same as you, looped a million times to make a ridiculous amount of random moves to hopefully jumble it up a bit.. but it doesnt seem to be doing much at all! I got annoyed and copied ur exact randomize function, and still the same result.. any ideas?
adzomZOR86 10 months ago
Why make your own function for moving when you can just use GetAsyncKeyState?
EQTo6q 1 year ago
@EQTo6q GetAsyncKeyState is Windows only. He tries to make these tutorials usable for all Operating Systems.
CPUhacker24 10 months ago
why did you declare iRowMove and iColMove with a (iRowSpace) and (iColSpace)
PurexOvvnage 1 year ago
³Ø½¼ Ç÷¯±×
jimmydr50 2 years ago
you don't use WASD, you barbarian!
PiratesVersusNinjas 2 years ago 31
@PiratesVersusNinjas I never heard of something like WASZ.... :)
boisei0 1 year ago
wow...
wow6bigbang6wow 2 years ago
Brilliant code work ;). Too bad the puzzle this is based on is impossible. The original 14-15 puzzle, as popularized by Sam Loyd, had the last two tiles, the 14 and 15, switched and the puzzle was to switch them back. Thanks to a mathematical principle called parity, it's impossible - but the people who wanted the $1,000 prize money didn't know that ;).
Skillusion 2 years ago
Hexadecimal codes....cool! :D
DaCyanWaffle123 2 years ago 8
@DaCyanWaffle123 lol, do you mean at the end? that are binary codes:P but still cool
SeanDemey 1 year ago
wow u really professional ... i cant even understand C++ T_T
johnnyvsc 2 years ago 2
good informative video, thanx.
bolifredo 3 years ago 2