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

Some bugs in chess.py #534

Open ABarpanda opened 8 months ago

ABarpanda commented 8 months ago

When we enter a valid move, all the pieces are printed individually and looks bad. image

Also, the pawn is not being allowed to move 2 steps in the beginning. It is showing invalid move. image

ABarpanda commented 8 months ago

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