SoylentNews
SoylentNews is people
https://soylentnews.org/

Title    Tic-Tac-Toe Implemented in Single Call to printf()
Date    Saturday June 06 2020, @04:06PM
Author    martyb
Topic   
from the your-move dept.
https://soylentnews.org/article.pl?sid=20/06/06/0157216

upstart writes in with an IRC submission:

Tic-Tac-Toe Implemented In Single Call To Printf():

[Nicholas Carlini] programmed a C implementation of two-player Tic Tac Toe, and he did it in a single call to printf(). The arguments for that single function call get mind-bendingly complex, so it may come as no surprise that it was written for The International Obfuscated C Code Contest (IOCCC).

Most of us are aware that printf() is one of those functions that is considerably more complex under the hood, and capable of far more, than it may appear to be. But did you know that it is capable of Turing-complete computation?

Can't wait to see the version that can play checkers and chess!


Original Submission

Links

  1. "upstart" - https://soylentnews.org/~upstart/
  2. "Tic-Tac-Toe Implemented In Single Call To Printf()" - https://hackaday.com/2020/06/05/tic-tac-toe-implemented-in-single-call-to-printf/
  3. "and he did it in a single call to printf()" - https://github.com/carlini/printf-tac-toe
  4. "The International Obfuscated C Code Contest" - https://www.ioccc.org/
  5. "Original Submission" - https://soylentnews.org/submit.pl?op=viewsub&subid=41405

© Copyright 2023 - SoylentNews, All Rights Reserved

printed from SoylentNews, Tic-Tac-Toe Implemented in Single Call to printf() on 2023-07-18 01:57:04