Open evandlr opened 2 months ago
THIS is the hardest part by far, i can't even think right now of how it would work. yes i could scale checking check to every moveable square by the king, but i'd have to also do that for every single piece on the board, because potentially one of them could block/take instead of it being checkmate, which would be really slow of a calculation. also if i did that i might as well show the player every possible move because id have to calculate that as well.
Probably just check every square in a circle around it to see if it is empty and not dangerous (the not dangerous part is super annoying).