Check out Modern Chess, our featured variant for January, 2025.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

@ Bob Greenwade[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Mon, Feb 19, 2024 03:19 PM UTC in reply to Bob Greenwade from 03:04 PM:

Well, if you know what you are doing, and do it carefully, you can add new pieces to a preset. You would have to make a copy of the moves of the Sergeant:

1  1  1  1     3 // sergeant(5616)
1  1 -1  1     3
1  3  0  1     3
1  1  1  0     1
1  1 -1  0     1
0

and copy that to the end of the legdefs table, behind the King moves. Then you would have to change all the y steps there (the 4th number on each line) from 1 to -1, to make it move in the other direction. Finally you would have to calculate where this appended section starts, which is 8 lines of 5 numbers plus the terminating zero (i.e. 41) places behind the King (which starts at 5703, as the comment indicates). So it starts at 5744.

Finally you replace the 5616 in the line

def sg cond #0 5616 0;

by this 5744, to let the GAME code know where the moves of the black sergeant (sg) start. That should do it.