douglasbagnall / p4wn

a smallish turn-of-the-century javascript chess engine
http://p4wn.sf.net
114 stars 33 forks source link

cannot castling #4

Closed yelizariev closed 12 years ago

yelizariev commented 12 years ago

OK. One more snapshot =)

"r6r/p3kp1p/4np2/1Bb5/3p4/P4N2/1P3PPP/R3K2R w KQ - 2 18"

white king don't under check, but p4_check_castling return 0.

douglasbagnall commented 12 years ago

fixed in commit 7e655219823f7af3eb68978d26c6b383e0b9863b.

Also see 5bee9df5a9d42cb26c49375a5cced34434994c1f. I can revert that if you don't like it.