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 Thu, May 30 08:04 PM UTC in reply to H. G. Muller from 05:12 PM:

I would think x nand y should produce the same value as nand x y by definition, the only difference being that y (and thus its possible side effects) would not be executed if the value of x already fixes the outcome (i.e equals false).

First, remember that the order of operation is from back to front. So you meant to say, "the only difference being that x (and thus its possible side effects) would not be executed if the value of y already fixes the outcome (i.e equals false)."

If y is false in "x nand y", it would exit the expression with a value of true without evaluating x. But if y is true, it would evaluate x. If x is false, then "nand x y" would be true, but "x nand y" would return the value of x, which would be false.