Check out Grant Acedrex, our featured variant for April, 2024.


[ 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

Game Courier Developer's Guide. Learn how to design and program Chess variants for Game Courier.[All Comments] [Add Comment or Rating]
Daniel Zacharias wrote on Thu, Oct 27, 2022 01:11 AM UTC:

I have a piece defined this way, which used to work before the server change and now doesn't. It's failing to highlight all the legal riding moves.

def Tiger fn (checkaride #0 #1 1 1 and empty #0) 
    where #0 2 3 
    #1 
    or fn (checkaride #0 #1 1 -1 and empty #0) 
    where #0 2 -3 
    #1
    or fn (checkaride #0 #1 -1 1 and empty #0) 
    where #0 -2 3 
    #1
    or fn (checkaride #0 #1 -1 -1 and empty #0) 
    where #0 -2 -3 
    #1
    or fn (checkaride #0 #1 1 1 and empty #0) 
    where #0 3 2 
    #1
    or fn (checkaride #0 #1 1 -1 and empty #0) 
    where #0 3 -2 
    #1
    or fn (checkaride #0 #1 -1 1 and empty #0) 
    where #0 -3 2 
    #1
    or fn (checkaride #0 #1 -1 -1 and empty #0) 
    where #0 -3 -2 
    #1
    or checkleap #0 #1 3 2;

def Tiger-Range mergeall 
    leaps #0 3 2 
    ray where #0 2 3 1 1 
    ray where #0 2 -3 1 -1 
    ray where #0 -2 3 -1 1 
    ray where #0 -2 -3 -1 -1
    ray where #0 3 2 1 1 
    ray where #0 3 -2 1 -1 
    ray where #0 -3 2 -1 1 
    ray where #0 -3 -2 -1 -1;