DhanushNehru / Ultimate-Web-Development-Resources

A collection of web development resources for most of your development needs
https://dhanushnehru.github.io/Ultimate-Web-Development-Resources/
Creative Commons Zero v1.0 Universal
413 stars 255 forks source link

Fixed some issues in chess.py #537

Open ABarpanda opened 8 months ago

ABarpanda commented 8 months ago

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

ABarpanda commented 8 months ago

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