Check out Janggi (Korean Chess), our featured variant for December, 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]
🕸📝Fergus Duniho wrote on Sun, Dec 5, 2004 08:10 PM UTC:
I've changed how next works since last night. It no longer uses any
arguments. It just updates whatever loop it is for and loops back if it
hasn't reached the end of the array yet.

I have added the for command. It works much the same as the foreach
command, but it uses a different syntax, and it uses an array expression
instead of an array name. If you had in mind something like 'for x = 1 to
8', you would write it as 'for x range 1 8'.

I have added the sub, return, and gosub commands for using subroutines.
The sub and return commands mark the beginning and end of a subroutine.
The gosub command goes to a subroutine. To prevent the possibility of
infinite loops, the gosub command cannot be used from within a subroutine.