deem
✅ What is the best way to fix StackOverflow when methods are calling each other?
https://gist.github.com/deemure/322782c9cc136ed2f25491ea995aeb8d It's nowhere closed to being finished, which why I feel like it will be hard to read
20 replies
✅ What is the best way to fix StackOverflow when methods are calling each other?
I have a list of both player's positions of all their pieces, and I found the best way to check if a player is in check is to check if all the possible moves of the opponent (using list mentioned) land on player's king position. So the best way to fix this would be to rewrite the code?
20 replies