evandlr / Projects

0 stars 0 forks source link

Add REAL checkmate system (don't need to capture king for it to activate) #9

Open evandlr opened 2 months ago

evandlr commented 2 months ago

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).

evandlr commented 3 days 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.