Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
travis-leith opened this issue Jul 22, 2023 · 1 comment
Open

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

travis-leith opened this issue Jul 22, 2023 · 1 comment

Comments

@travis-leith
Copy link

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
Copy link
Owner

TLmaK0 commented Jul 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants