diff --git a/2020/carlini/index.html b/2020/carlini/index.html index 44aea07c2..0efd38c6e 100644 --- a/2020/carlini/index.html +++ b/2020/carlini/index.html @@ -267,11 +267,11 @@ configurations, for both players.

where argument 1 is a pointer to a temporary variable followed by a NUL byte.

This works because if the current count is 0 mod 256, then -"%1$hhn" will write zero to argument 1 and then “%1$s” will -never emit any text. If, on the other hand, the count is not 0 mod 256, -a length-1 string will be written to argument 1, and then -"%1\$s" will increment the count by one. By repeating this -256 times we’re eventually going to reach 0 mod 256.

+"%1$hhn" will write zero to argument 1 and then +"%1$s" will never emit any text. If, on the other hand, the +count is not 0 mod 256, a length-1 string will be written to argument 1, +and then "%1$s" will increment the count by one. By +repeating this 256 times we’re eventually going to reach 0 mod 256.

Checking if there has been an invalid move is achieved similarly.

In order to decide what to print out, we have to cast the “in-memory” array of bits to Xs and Os to print out. This is actually rather