You are on the backup site for Chessvariants.com. Any posts, moves, or other changes you make here will not be permanent, because the pages and database from the main site will be backed up here every midnight EST. Additionally, things may not be working right, because this site is also a testbed for newer system software. So, if you are not here to test, develop, or merely read this site, you may want to change .org to .com in the navigation bar and go to the main site.



The Chess Variant Pages




[ 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 2021-01-09 UTC

I[s] there a notation for octal, hexadecimal or binary constants in GAME code?

I have just added a new int operator that recognizes whether a number is a hexadecimal, octal, decimal, or binary literal and converts it to an integer. Hexadecimal literals begin with 0x, octal with just 0, decimal with nothing special, and binary with 0b. It checks the first characters to determine the base, then uses PHP's intval() function.