Dynamics and thermodynamics of a gas automata