Lattice Gas Simulation from Greg Borenstein on Vimeo.
Implemented in OpenFrameworks. Browse code on Github: LatticeGas.cpp or in the archive here:
Collision table based on rules: