From: H.G. Muller Date: Thu, 19 Apr 2012 20:59:53 +0000 (+0200) Subject: Remove S-Chess gating-move translation X-Git-Tag: v2.0~34 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9c677318b5822882f42b5f6f67b7130b2eb83fc3;p=uci2wb.git Remove S-Chess gating-move translation This is no longer needed, since the UCI S-Chess engine now uses the same gating-move notation as WinBoard protocol. --- diff --git a/UCI2WB.c b/UCI2WB.c index 654c749..5fe87b9 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -139,8 +139,6 @@ Move4GUI(char *m) m[4] = '=', m[5] = 0; } } - if(m[0] == 'e' && (m[5] == 'a' || m[5] == 'h')) // seirawan castling + gating at Rook - m[0] = m[5], m[2] = 'e'; // convert to RxK notation } void * @@ -270,11 +268,6 @@ Move4Engine(char *m) if(m[4] == '=') m[4] = 0; // no '=' in USI format! else if(m[4] != '\n') m[4] = '+'; // cater to WB 4.4 bug :-( } - if(m[4] && (m[1] == '1' || m[1] == '8')) { // seirawan gating - m[5] = m[0], m[6] = m[1], m[7] = '\0'; // copy from-square behind it, as gating square - if(m[2] == 'e' && (m[0] == 'a' || m[0] == 'h')) - m[2] = (m[0]+m[2]+1)>>1, m[0] = 'e'; // gating at Rook - } } void