thomasahle / sunfish

Sunfish: a Python Chess Engine in 111 lines of code
https://www.chessprogramming.org/Sunfish
Other
2.95k stars 543 forks source link

Removed unnecessary pawn move #69

Closed arpit-omprakash closed 4 years ago

arpit-omprakash commented 4 years ago

Made the program shorter by one line. It still works the same (as far as I tested).

kraktus commented 4 years ago

This PR will allow illegal moves such as e2e3 in this position: rnbqkbnr/pppp1ppp/8/8/8/4p3/PPPPPPPP/RNBQKBNR w KQkq - 0 1

arpit-omprakash commented 4 years ago

Thanks for the input, understood the problem.