summarylogtreecommitdiffstats
path: root/phalanx-castling-broken.patch
diff options
context:
space:
mode:
authorozwigh2015-12-11 13:04:28 +0000
committerozwigh2015-12-11 13:04:28 +0000
commitdc4a9cb49fc3ac9e14c3c8e9893e006fbd39afe8 (patch)
tree8af4f7b1fddb603d9a3a3039f55926253c6ca3cd /phalanx-castling-broken.patch
downloadaur-phalanx.tar.gz
Initial import (23-3).
Diffstat (limited to 'phalanx-castling-broken.patch')
-rw-r--r--phalanx-castling-broken.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/phalanx-castling-broken.patch b/phalanx-castling-broken.patch
new file mode 100644
index 000000000000..c4469fe9fa71
--- /dev/null
+++ b/phalanx-castling-broken.patch
@@ -0,0 +1,17 @@
+--- Phalanx-XXII/io.c
++++ phalanx-XXIII/io.c
+@@ -36,13 +36,11 @@
+ if( color(B[s]) == Color ) G[0].mtrl += Values[ B[s]>>4 ];
+ else G[0].xmtrl += Values[ B[s]>>4 ];
+
+-/* busted! S.A.
+ G[0].castling = 0;
+ if( B[E1]!=WK || B[A1]!=WR ) G[0].castling |= WLONG;
+ if( B[E1]!=WK || B[H1]!=WR ) G[0].castling |= WSHORT;
+ if( B[E8]!=BK || B[A8]!=BR ) G[0].castling |= BLONG;
+ if( B[E8]!=BK || B[H8]!=BR ) G[0].castling |= BSHORT;
+-*/
+
+ G[0].rule50 = 0;
+
+