Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Implementing Tic-Tac-Toe Using Only Printf (ioccc.org)
3 points by hasheddan on March 28, 2024 | hide | past | favorite | 1 comment


I was trying to think of what devilish tricks they had come up with to read user input via printf, but alas they also use scanf.

So the more accurate title would be "Implementing Tic-Tac-Toe Using Only Printf and Scanf".

Still, pretty neat! And should scare anyone using printf with user-supplied formatting strings, ie a great example of why that's a big no-no.




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

Search: