Bugfix legality null move in parsing with -testLegality off
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 8 Jan 2010 08:21:04 +0000 (09:21 +0100)
committerArun Persaud <arun@nubati.net>
Tue, 12 Jan 2010 04:01:54 +0000 (20:01 -0800)
commit3994c15346431e4174170507360a676052456d80
tree21562ade9c00af337a244f4d8ba279f52da21383
parentc3443c84c419b9d3170b0f339bea78634a13c074
Bugfix legality null move in parsing with -testLegality off

The pointers were compared, in stead of the values.
Furthermore, instead of null moves, it rejected moves on the main diagonal when legality checking was off.

Also exclude moves with empty squares and enemy pieces.
backend.c