Most complex ASCII fluid – Honorable mention (2012)

Most complex ASCII fluid – Honorable mention (2012)

This program reads a text from standard input, and uses it as an initial configuration of the particles. On Cygwin, gcc and clang complain about a usage of (complex’s imaginary unit), but I bet this is cygwin’s issue; it is surely a C99 feature. (Incidentally, you can exert horizontal gravity by using, such as, )

Every five entries of contain information of one particle: position, wall-flag, density, force, and velocity, in turn.

Source: www.ioccc.org