Game-playing and game-learning automata