Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some issues in chess.py #537

Merged
merged 8 commits into from
Jun 30, 2024
Merged

Conversation

ABarpanda
Copy link
Contributor

@ABarpanda ABarpanda commented Oct 29, 2023

As mentioned in issue #534
There are many problems

  1. The pawn doesn't move 2 steps
  2. There is no checkmateExists function as mentioned
  3. The first move is made by black instead of white
  4. The positions of king and queen are wrong in black
  5. When we enter a valid move, all the pieces are printed individually
  6. There is no option to end the game in between. The only option is to kill the program.
  7. The pawn moves out of the board

Problems solved

  • Now the pawn moves 2 steps on its first step
  • The first move is now made by white
  • The kings and queens are now correctly placed
  • A pawn does not move out of the board
  • Problem 5 eliminated

@ABarpanda ABarpanda changed the title Fixed some issues metioned in #534 Fixed some issues in chess.py Oct 30, 2023
@ABarpanda
Copy link
Contributor Author

I also added some improvements to the book-cricket-game. It is also included in the pull request.
It is explained in #539

@DhanushNehru DhanushNehru merged commit 158a703 into DhanushNehru:main Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants