Check out Glinski's Hexagonal Chess, our featured variant for May, 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 Wed, Feb 4, 2009 09:33 PM EST:
Okay, I fixed the push command. The problem was that an empty array was being interpreted as a null value, and isset returns false when a variable has a null value. This problem has not shown up with zero values, because PHP does not treat zero as a null value, and isset will normally recognize a variable set to zero as set. The fix combines isset with array_key_exists, using isset to check whether any variables for the scope exist and array_key_exists to check for the named variable. I need to use isset before array_key_exists to avoid error messages from array_key_exists when the array it is supposed to search for a variable doesn't exist.