Check out Modern Chess, our featured variant for January, 2025.


[ 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 Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Sat, Mar 2, 2024 09:14 AM UTC in reply to Jean-Louis Cazaux from Fri Mar 1 08:29 PM:

@HG: it is really a mess to recover this!

Yes, I am very sorry about this. I do know this site should not be used as a alpha-test facility. But the include file did contain a bug that had to be fixed, and I was dealing with some apparently illogical and therefore unpredictable behavior of GAME code itself.

@Fergus: wouldn't it be better to include the application of the PHP intval operator in the implementation of piececount itself, so that it would return the expected 0 for pieces that are not on the board?

It might also be useful to apply intval to the operands of arithmetic operators such as +. (Or is that very detrimental, performance-wise?) I was really baffled by that 1 + undefined = 0.