timwoelfle / PlainChess

PlainChess aims to be a simple yet full–featured and beautiful alternative to all the cluttered chess portals currently existing. Its primary goal is to allow two persons to play a round of chess, no matter whether they happen to be at the same location or on a different continent. It's designed to be platform independent and to run on every computer or smart phone running a modern web browser and thus enabling people everywhere around the globe to play chess, at home and on the go.

Home Page:http://plainchess.timwoelfle.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Managed to capture opponents king

mrkvicka22 opened this issue · comments

King was on the 1st rank. King was threatened by a check by a rook. White moved knight to stop the check which was an illegal move as the knight already guarded the king from check by bishop. After the illegal knight move bishop captured the king to try whether it works and indeed it did.

getReachableFields should return a null if a position after any possible move generates a check (pinned piece).