From 9c677318b5822882f42b5f6f67b7130b2eb83fc3 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 19 Apr 2012 22:59:53 +0200 Subject: [PATCH] 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. --- UCI2WB.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) 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 -- 1.7.0.4