Black and white automata