Check out Janggi (Korean Chess), our featured variant for November, 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

The birth of 3 new variants - part 1 : Grand Apothecary Chess Alert[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Mon, May 31, 2021 04:54 PM UTC in reply to Aurelian Florea from 01:31 PM:

I get this error: Syntax Error on line 150

The last expression is 1. In for or foreach, it must evaluate to an array.

You have incorrectly defined your Mortar-Range function as follows:

def Mortar-Range leaps #0 1 1 or rays #0 1 0;

The or operator cannot be used to merge two arrays. It returns a Boolean value. That's why it gave a value of 1 where an array was expected. Use the merge operator to merge two arrays:

def Mortar-Range merge leaps #0 1 1 rays #0 1 0;