Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This guy wrote tic-tac-toe in a single call to printf for IOCCC 2020 competition:

https://github.com/carlini/printf-tac-toe



That is quite literally a work of art.


It’s very fun and impressive but it’s absolutely not a single call.


Maybe a generous interpretation of the comment and a realisation that common language isn't always 100% precise would be better than pointless arguments about semantics.

There is only a single printf written in the source code.


That I can agree with!


I don't think it's an unreasonable criticism, otherwise the challenge is trivial:

``` function printg(arg) { printf(arg); } ```


That, of course, isn't what they did.


They did put it in a while loop though, which, if my programming isn't completely out of date, is capable of calling the function more than once.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: