IOCCC image by Matt Zucker

The International Obfuscated C Code Contest

2024/codemeow - Prize in tray planting

bonsai generator

Author:

To build:

    make all

To use:

    ./prog

Try:

    ./try.sh

Judges’ remarks:

Sometimes you cannot see the forest thru the trees. But when you cannot see the trees thru the forest, it may be because the trees are not that tall.

This program generates such “mini-trees”: over time and in time of you know what we mean. Even though compiled C code might “grow on parse trees”, we think this code will also “grow on you” as the C expression goes. 😉

Author’s remarks:

This work is highly inspired by cbonsai program (which was inspired by bonsai.sh, which was inspired by bonsai.js), but this one does not use ncurses and fits into IOCCC rules’ size.

Mac OS X

A little notice, that you need a terminal that supports ANSI codes and does not reinvent the wheel. I have tested it on iTerm2 and xterm and it sure works, but sometimes detect the windows size wrongly, so best of luck.

Warnings

The iocccsize tool warns about triggered a word buffer overflow! as I use the double values to stora data. It’s okay, no error here.

Inventory for 2024/codemeow

Primary files

Secondary files


Jump to: top