[gcompris-devel] chess bug

Bruno Coudoin bruno.coudoin at free.fr
Mon Feb 17 09:47:05 UTC 2003


I changed chess.c in the latest gcompris.
This is now fixed.

I had to tell gnuchess that the castling is available.

Bruno.


Le ven 14/02/2003 à 23:31, pgeorges a écrit :
> when playing chess, castle is not handled correctly. After a short 
> castle here is the output I get (and no reply from black) :
> 
> engine_local_cb read=4. g1f3
> Legal move to g1f3
> engine_local_cb read=Search time bonus near book
> engine_local_cb read=Root = -32, Phase = 1
> engine_local_cb read=Time = 0.82, Max = 3.28, Left = 57.89, Moves = 97
> engine_local_cb read=Ply   Time     Eval      Nodes   Principal-Variation
> engine_local_cb read=1. -10 0 41         Bb4
> Legal move to -10 0 41   Bb4
> engine_local_cb read=2. -7 0 298         Bb4 a4
> Legal move to -7 0 298   Bb4 a4
> engine_local_cb read=3. -26 2 2515       Nd4 Nxd4 exd4 Ne2 Nxe4 Nxd4
> Legal move to -26 2 2515         Nd4 Nxd4 exd4 Ne2 Nxe4 Nxd4
> engine_local_cb read=4. -1 27 16013      Bc5 Na4 Bd4 Nxd4 Nxd4
> Legal move to -1 27 16013        Bc5 Na4 Bd4 Nxd4 Nxd4
> engine_local_cb read=5. 0 45 30148       Bc5 Na4 Bd4 Nc3 Bc5
> Legal move to 0 45 30148         Bc5 Na4 Bd4 Nc3 Bc5
> engine_local_cb read=4. ... f8c5
> computer number moves to f8c5
> move_piece_to from=96 to=63
>     move_piece_to to    x=3 y=5
> engine_local_cb read=My move is: f8c5
> ===== Source square = 25 Destination square = 27
> e1g1
> move_piece_to from=25 to=27
>     move_piece_to to    x=7 y=1
> move_piece_to from=28 to=26
>     move_piece_to to    x=6 y=1
> r   b q k     r
> p p p p   p p p
>      n     n
>    B b   p
>          P
>      N     N
> P P P P   P P P
> R   B Q   R K
> engine_local_cb read=Illegal move: e1g1
> 
> ** (gcompris:3139): WARNING **: Illegal move to  : SHOULD NOT HAPPEN
> 
> Pascal
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
> are you planning your Web Server Security? Click here to get a FREE
> Thawte SSL guide and find the answers to all your  SSL security issues.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> _______________________________________________
> gcompris-devel mailing list
> gcompris-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gcompris-devel
-- 
ofset    http://ofset.sf.net/
gcompris http://ofset.sf.net/gcompris





More information about the Gcompris-devel mailing list