The Universe as Automaton