Fix move of black +N in Euro-Shogi
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 13 Apr 2018 07:24:04 +0000 (09:24 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 13 Apr 2018 07:24:04 +0000 (09:24 +0200)
The black +N was moving as a white Gold!

dropper.c

index a21fc21..fa1eb00 100644 (file)
--- a/dropper.c
+++ b/dropper.c
@@ -349,7 +349,7 @@ waValues[]  = { 30, 210, 210, 180, 210, 210, 210, 240, 270, 160, 175, 270, 300,
 unsigned char
 chessDirs[] = { 40, 49, 4, 35, 26, 13, 255, 13, 4, 35, 26, 255, 40, 53, 4, 35, 26, 13, 255, 13, 4, 35, 26, 255 }, // K,P,N,B,R,Q / Q~,N~,B~,R~
 shogiDirs[] = { 40, 69, 97, 87, 57, 35, 26, 186, 227, 255, 57, 57, 57, 57, 31, 22, 57, 57, 255,   // K,P,L,S,G,B,R,N / +P,+L,+S,-,DH,DK,+N
-               40, 62, 94, 43, 64, 35, 26, 10, 232, 255, 64, 64, 64, 64, 31, 22, 64, 57, 255 },
+               40, 62, 94, 43, 64, 35, 26, 10, 232, 255, 64, 64, 64, 64, 31, 22, 64, 64, 255 },
 toriDirs[]  = { 40, 69, 189, 197, 201, 42, 79, 255, 112, 0, 0, 0, 0, 168, 255,   // Ph, S, Pt, Ql, Qr, Cr, Fa / G - - - - Ea
                 40, 62, 193, 205, 209, 42, 71, 255, 108, 0, 0, 0, 0, 177, 255 },
 kyotoDirs[] = { 40, 69, 97, 87, 186, 255, 26, 57, 35, 57, 255, 40, 62, 94, 43, 10, 255, 26, 64, 35, 64, 255 }, // K,P,L,S,N / R,T,B,G