Settings

Theme

Tic-Tac-Toe Implemented in Single Call to Printf()

hackaday.com

27 points by samoshay 6 years ago · 3 comments

Reader

jedimastert 6 years ago

The author originally wrote a paper provin that printf is Turing Complete [0].

Here is program itself and an actual, excellent write up [1].

@dang, you might consider switching the link to the GitHub. I don't think the Hackaday article actually adds anything new.

[0]: https://www.usenix.org/system/files/conference/usenixsecurit...

[1]: https://github.com/carlini/printf-tac-toe

sfoley 6 years ago

There’s a scanf in there...

smitty1e 6 years ago

Note that the #define statements spell "noughts and crosses" when read vertically.

It's the little touches.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection