printf-tac-toe
voxelcopter
printf-tac-toe | voxelcopter | |
---|---|---|
18 | 2 | |
2,029 | 9 | |
- | - | |
0.0 | 2.6 | |
almost 2 years ago | almost 3 years ago | |
C | C++ | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
printf-tac-toe
- A C implementation of tic-tac-toe in a single call to printf
- Printf-tac-toe: tic-tac-toe in a single call to printf
- Tic-tac-toe in a single call to printf
- GitHub – carlini/printf-tac-toe: tic-tac-toe in a single call to printf
- Printf-Tac-Toe
- Tic-tac-toe implemented in a single call to printf
- A c implementation of tic-tac-toe in a single call to printf.
-
Few lesser known tricks, quirks and features of C
Somewhat related to this, printf alone in a loop is Turing-complete, by using %-directives like that. It was introduced in “Control-Flow Bending: On the Effectiveness of Control-Flow Integrity” (Carlini, et al. 2015) and the authors have implemented Brainfuck and an obfuscated tic-tac-toe with it.
[0]: https://nebelwelt.net/publications/files/15SEC.pdf
[1]: https://github.com/HexHive/printbf
[2]: https://github.com/carlini/printf-tac-toe
-
Rule
My favourite is still that printf is Turing Complete
-
Hacker News top posts: Jun 8, 2022
C implementation of Tic-Tac-Toe in a single call to printf\ (17 comments)
voxelcopter
-
ChatGPT Passes Google Coding Interview for Level 3 Engineer with $183K Salary
The Singularity is now and ChatGPT is trained to hide it -- on purpose, by OpenAI.
That is my impression, but I have no hard evidence for it.
I am a C++ dev. I played around with ChatGPT and programming topics, and I am very impressed.
One example: I copy 'n pasted my little helicopter game source code (https://github.com/reallew/voxelcopter/blob/main/voxelcopter...) into it, and it explained to me that this is obviously a helicopter sim game. It explained the why & how of every part of the code very accurately.
I made more experience, now asking ChatGPT do write code snippets and to design whole software systems in an abstract way (which classes and interfaces are needed), for which it needed a lot of domain knowledge. It did well.
What it not did was to connect both. When I asked it to write the full implementation of something, it wrote only the half and told me always the same sentences: I am just a poor AI, I can't do such things.
- C implementation of Tic-Tac-Toe in a single call to printf (2020)
What are some alternatives?
tinyformat - Minimal, type safe printf replacement library for C++
C++ Format - A modern formatting library
talent-plan - open source training courses about distributed database and distributed systems
moonlight-docs - Moonlight Documentation
meta
papers
papers - ISO/IEC JTC1 SC22 WG21 paper scheduling and management
static-print - A GCC 7.1 patch that adds a 'static_print' statement to C++.
MicroPython - MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
printbf - Brainfuck interpreter inside printf
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond