Aleks31 / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

PyChess misinterprets sacrifices #936

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The comments section is very important for beginners, who view it much during 
their games and I feel much attention should be laid on this. PyChess 
sometimes, misinterprets a sacrifice.

For example;

1.c4 Nf6 2.Nf3 g6 3.g3 Bg7 4.Bg2 O-O 5.d4 d6 6.Nc3 Nbd7 7.O-O
e5 8.e4 c6 9.h3 Qb6 10.d5 cxd5 11.cxd5 Nc5 12.Ne1 Bd7 13.Nd3
Nxd3 14.Qxd3 Rfc8 15.Rb1 Nh5 16.Be3 Qb4 17.Qe2 Rc4 18.Rfc1
Rac8 19.Kh2 f5 20.exf5 Bxf5 21.Ra1 Nf4 

21...Nf4 was a sacrifice but PyChess just says "black moves knight to f4"

Another example:

In this position; r3rk2/pb2bpp1/1n5p/q1pP1B2/1p3B2/5N2/PPQ2PPP/R2R2K1 w 

After making the move Bc8 (which is a sacrifice), PyChess still doesn't call it 
a sacrifice and says "white moved bishop to c8" - It should say "White 
sacrifices material" rather than that.

please fix this.

Original issue reported on code.google.com by xatrickf...@gmail.com on 14 Jan 2015 at 11:17

GoogleCodeExporter commented 8 years ago

Original comment by gbtami on 14 Jan 2015 at 10:29

GoogleCodeExporter commented 8 years ago
Seems the attack_type() in strateval.py comments on capture moves only. (line 
#153)

Original comment by gbtami on 18 Jan 2015 at 1:46

GoogleCodeExporter commented 8 years ago
Tomas, would it be possible for you to make it comment on non-capture moves 
too? 

Original comment by xatrickf...@gmail.com on 19 Jan 2015 at 1:41

GoogleCodeExporter commented 8 years ago
Sure. But it takes time.

Original comment by gbtami on 20 Jan 2015 at 4:28