jonpchin / gochess

Online real time chess web server using websockets
MIT License
47 stars 17 forks source link

Removed incorrect if pawn already moved logic, need to reimplement #50

Open jonpchin opened 7 years ago

jonpchin commented 7 years ago

Removed incorrect if pawn already moved logic then do not allow it to jump two squares, need to reimplement this logic. An example: Game ID 88 where h file pawn captures onto g file pawn and g6 pawn moves to g5 now g7 pawn can't move two squares even though it should be allowed

jonpchin commented 7 years ago

Must keep track of whether all pawns moved in a 2D boolean array or a 1D array containing key pair values representing the file and row the pawn is on.