Comment on A minimax chess engine in regular expressionsparentComments−wodenokoto1ydemonstrated that printf() is Turing complete and wrote a first person shooter in ...Not gonna lie, I thought that sentence would end with the FPS being done in printf.−teleforce1yThis guy wrote tic-tac-toe in a single call to printf for IOCCC 2020 competition:https://github.com/carlini/printf-tac-toe−paulddraper1yThat is quite literally a work of art.−tubs1yIt’s very fun and impressive but it’s absolutely not a single call.−rhdjebejdbd1yMaybe 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.−tubs1yThat I can agree with!−philipwhiuk1yI don't think it's an unreasonable criticism, otherwise the challenge is trivial:``` function printg(arg) { printf(arg); } ```−Ensorceled1yThat, of course, isn't what they did.−philipwhiuk1yThey 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.
Comments
Not gonna lie, I thought that sentence would end with the FPS being done in printf.
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.