TLmaK0 / rustneat

Rust Neat - NeuroEvolution of Augmenting Topologies
MIT License
68 stars 16 forks source link

How to evolve based on head to head battles? #50

Open travis-leith opened 1 year ago

travis-leith commented 1 year ago

If I want to evolve organisms that compete in head to head 2 player contests (like tic tac toe), is there any guidence on how to set this up. An example would be great. I note that the test function for the Environment trait has a parameter for only a single organism. Is there a convenient way to set up 2 player games?

TLmaK0 commented 1 year ago

I never test it, but I think you can create an environment where you can identify the player by a variable, and change it before call evaluate_it method for one and other player in the same loop. The environment can asign this movement to actual player selected.