MSTC-DA-IICT / Hacktoberfest24-Chess-Game-Python-Advanced

This repository is focused on Python Advanced concepts, featuring a console-based Chess game. It promotes open-source contributions for Hacktoberfest 2024, encouraging developers to collaborate and improve the project.
0 stars 9 forks source link

prevent invalid move when king is in check #6

Open desairudra opened 4 days ago

desairudra commented 4 days ago

Description When a player is in check, any move they make that does not remove the check should be considered invalid. The only valid moves in the move that free the king from being in check. If a player attempts a move that leaves their king in check, that move should be rejected, and keep asking the same player about his player until a move is made that free is king from check. Expected outcome If after the player X move if Player Y King is in check.After the Player Y turn is over.If his King is still in check condition then make that move invalid and keep asking the player Y about his move until such move is made such that his king is freed from check.Make sure that this should work for both players

siya100 commented 4 days ago

hey @desairudra please assign this issue to me

desairudra commented 4 days ago

@siya100 .This issue has been assigned to you.

desairudra commented 2 days ago

@siya100 I would like to know your progress on this issue

siya100 commented 1 day ago

hey@desairudra sorry for the inconvenience actually i havent started working on it can you please give me one day and i will update you as soon as possible.