IOCCC image by Matt Zucker

The International Obfuscated C Code Contest

2024/tmarrec - Prize in cyclonic coding

3D tornado simulation

Author:

To build:

    make all

To use:

    clear; ./prog

Try:

    ./try.sh

Alternate code:

The original submitted entry was flickering when executed. This alternate code implements the original level of flickering.

The original submitted entry was flickering when executed. We added code to stop that. After adding this to the compile line:

    -DQ='fputs("\033[H",stdout);'

We changed the source as follows:

    make diff_alt_prog

Alternate build:

    make alt

Alternate use:

    ./prog.alt

Judges’ remarks:

This prize in cyclonic coding will certainly twist your perspective on C code.

This is not your garden variety tempest in a teapot. It’s a tornado in a window!

Author’s remarks:

3D fluid simulation

    advection=semi-lagrangian scheme
    projection=pressure solver with neumann boundary condition
    linear solver=gauss-seidel relaxation
    rendering=ray marching

Inventory for 2024/tmarrec

Primary files

Secondary files


Jump to: top