placidfox / JetpackChess

Chess Board Library with Jetpack Compose
GNU General Public License v3.0
1 stars 0 forks source link

Check Validation : in viewModel or in Move or in GamePosition - all pieces : Can Capture King ? #30

Closed placidfox closed 9 months ago

placidfox commented 10 months ago

modify validate move, apply move, calculate position, ...

calculate if ownKing isCheck after -> illegal (pinned) to the same for blocking castle if in between square if menaced calculateNewPosition -> check if a piece can Check the king -> Check Status = TRUE