Stumbled upon this puzzle in one of my drawers today and was curious how you could solve it using code. This is a very elegant and sturdy solution you have here! Now if I understood C++ I’d be able to track how it works. May attempt my own version in JavaScript one day. ¯\_(ツ)_/¯ Great video!
@@Pulsed101 Id use a 2d array to store the state, which would make the legal move definition much easier, and for such a simple program I would not use any structs. Also, I would not use an extra board state editor that changes a binary number that represents the board state because this would take more time to make than simply writing some input based functions in the code that can visualize the board and let you dynamically change it.
Stumbled upon this puzzle in one of my drawers today and was curious how you could solve it using code. This is a very elegant and sturdy solution you have here! Now if I understood C++ I’d be able to track how it works. May attempt my own version in JavaScript one day. ¯\_(ツ)_/¯
Great video!
The code is waaaay over my head but at least I can follow your logic, very impressive
This is unbelievably different from my approach for such a simple thing
Any chance you're willing to share your solution? I have no idea how I would approach it
@@Pulsed101 Id use a 2d array to store the state, which would make the legal move definition much easier, and for such a simple program I would not use any structs. Also, I would not use an extra board state editor that changes a binary number that represents the board state because this would take more time to make than simply writing some input based functions in the code that can visualize the board and let you dynamically change it.
Great efforts
Its very interesting wish you showed all the code
Why not work it backwards? No need to check "all pegs" if u can just work backward from the hole
Bro, what is going on
u just got dped
What programming software is this?
(Im a noob)
Just show the answer .lol