File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 88#define Z ;if(!strncmp(c,
99
1010char c [Q ], * C ,
11- * T = "#5)-57234#15BD#24#24$3#(.)$?).( /.2##$" ; // Piece move steps, board setup data and promotion XORs (subtract '#'=35).
11+ * T = "#5)-57234#15BD#24#24$3#EKFA\\FKE /.2##$" ; // Piece move steps, board setup data and promotion XORs (subtract '#'=35).
1212
1313B [Q ], R , S , W , X ;
1414
@@ -76,7 +76,7 @@ main(i, p) {
7676 Z "p" ,1 )) { // Parse 'position' command.
7777 N i = 0 ;i < 8 ;++ i ) // Reset board to start position.
7878 B [i + 16 ]= R = 170 ,B [i + 96 ]= 202 , // Pawns.
79- B [i + 112 ]= (B [i ]= T [i + 23 ]- 3 ) + (S = 32 ), // Pieces.
79+ B [i ]= (B [i + 112 ]= T [i + 23 ]) - (S = 32 ), // Pieces.
8080 B [i + S ]= B [i + 48 ]= B [i + 64 ]= B [i + 80 ]= 0 ; // Empty rows.
8181 N ;C = strtok (0 ," " );)
8282 F (* C + C [1 ]* 16 - 881 , C [2 ]+ C [3 ]* 16 - 881 , C [4 ], R );
You can’t perform that action at this time.
0 commit comments