🌘 打造 5KB 的 C 語言終端版「Klondike 接龍」遊戲
➤ 極簡藝術:在 5KB 的限制內重現 Windows 經典
https://nanochess.org/klondike_in_c.html
本文由資深開發者 Oscar Toledo G. 分享,講述他為「國際混淆 C 語言大賽」(IOCCC)開發一款「Klondike 接龍」遊戲的歷程。面對嚴苛的 5KB 程式碼大小限制,作者巧妙運用 `curses` 函式庫處理終端顯示,並透過 Unicode 符號與顏色配置,在有限的空間內還原了 Windows 3.1 經典遊戲的核心體驗。作者詳細記錄了從遊戲邏輯實作到 UI 極簡化設計的技術挑戰,最終透過極致的程式碼混淆技巧,將複雜的接龍機制壓縮進小巧的執行檔中。
+ 這種對原始碼進行「混淆」的極致追求真的很瘋狂,看起來像天書,但居然能跑出完整的遊戲功能,這就是 C 語言開發者的浪漫吧。
+ 對於剛入門的工程師來說,這確實是很好的負面教材(不可維護性),但對於理解記憶體管理和終端繪圖機制來說,這份程式碼簡
#程式設計 #C語言 #遊戲開發 #IOCCC #終端機應用
Klondike Solitaire for curses in 5k of C language

How I developed a Klondike Solitaire game for curses in C language as an entry for the IOCCC.

🎉 Ah, the classic quest of squeezing Klondike Solitaire into 5k of C code for curses—because who needs readability when you can cram #entertainment into a gloriously unreadable mess? 🤪 Oscar Toledo G. embarks on the noble endeavor to make sure your eyes 👀 bleed, all in the name of prestigious #IOCCC bafflement since 1984! 🏆
https://nanochess.org/klondike_in_c.html #KlondikeSolitaire #CCode #codingChallenge #HackerNews #ngated
Klondike Solitaire for curses in 5k of C language

How I developed a Klondike Solitaire game for curses in C language as an entry for the IOCCC.

#TIL about the Eternal Software initiative (eternal-software.org) through this amazing feat of software optimization, a VM in 366 bytes (!) of C code, released for the #IOCCC (ioccc.org/2025/cable/index.html)

@cve one more: if there is a 'bug' then document it. That can save a submission. Doesn't mean it'll win but they do care about working programs. They also care about portable programs.

Good luck next time! #ioccc

@ngate actually it IS very productive. You can learn a great deal from screwing with code and stressing compilers. It's also a great exercise to the brain. It is also FUN. I know some others and I have also been offered a job from having won. How is that not productive?

It is VERY productive and anyone who thinks otherwise might want to participate before they claim otherwise. Where it would not be productive is if you were writing it in production code. This is NOT production code.

#ioccc

@sirwumpus I am totally knackered so take this with a pinch of salt (at least part of it): I love the layout of your code! The ASCII art is brilliant. I do love the inclusion of emojis. Reminds me of 2024/ferguson1 though how I did that was different by quite a bit. This might be worth taking with a pinch of salt: I can see what you mean by there not being a lot of obfuscation but it seems I was right and it's some cleverness. I'm sure that's true but I haven't the foggiest what you did! #ioccc
Wow, this #IOCCC entry is special, and well worth the time to read about it:
https://www.ioccc.org/2025/cable/index.html
2025/cable - Best imaginary emulator

2025 IOCCC entry cable - Best imaginary emulator

文字化け?と思ったら、まさかの動く点字!🤔 C言語でここまでできるなんて…!国際難読化Cコードコンテスト2025年優勝作品の驚きの技術をチェック!
#IOCCC #C言語 #プログラミング

📖 記事を読む👇
https://shippo-trend.xyz/%e6%96%87%e5%ad%97%e5%8c%96%e3%81%91%e5%ae%9f%e8%a1%8c%e3%81%97%e3%81%9f%e3%82%89%e5%8b%95%e3%81%8f%e7%82%b9%e5%ad%97%e3%81%ab%e9%9b%a3%e8%aa%ad%e5%8c%96c%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ae%e5%a5%87/

文字化け?実行したら動く点字に難読化Cコードの奇才

C言語の読みにくさと創造性を競うIOCCC 2025年優勝作品が話題。文字化けのようなコードから動く点字ディスプレイが!プログラマーの遊び心と技術力を探ります。

トレンドしっぽ
https://www.ioccc.org/2025/
OMG! My Game of Life implementation for the gameboy is included in one of the winning entries x)
#gameboy #ioccc #homebrew
2025 - The 29th IOCCC

IOCCC Year 2025

As of yesterday I am now in the top five of the #ioccc ! This year I only won one entry (previous two I won two and a couple years before that, my first year participating - 2018, I won one - 2019 was a very bad year for me personally) but because @sirwumpus was in his own rank and he went up one (winning another one) I went up two!

This surprised me but it thrills me too. I actually feared that I would go down at least one rank when the contest closed 13 March 2026!

@ioccc