02-22-2021, 05:31 PM
Hi, Eric. Yes, please change it however you see fit.
I'll be interested to see how you handle the end conditions. My first inclination was to take the most recent move and check whether all the spaces along a certain line were occupied by friendly pieces, but I couldn't figure out how to skip over irrelevant spaces. I included some comments about the applicable slopes (for a 4x4x4 grid). But, of course, feel free to use whatever approach makes the most sense to you.
I'll be interested to see how you handle the end conditions. My first inclination was to take the most recent move and check whether all the spaces along a certain line were occupied by friendly pieces, but I couldn't figure out how to skip over irrelevant spaces. I included some comments about the applicable slopes (for a 4x4x4 grid). But, of course, feel free to use whatever approach makes the most sense to you.