Self-learning evolutionary game theory with multi-agent tournaments, replicator dynamics, and ESS calculation