Simulate AI games with Python
Moderator: Forum Moderators
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Simulate AI games with Python
Is there any way to let two AIs play against eachother and get the result using Python, as the AI is also coded using Python?
I would use this to test whether maps are balanced by letting the AI play a lot of matches and then comparing the results.
Any ideas?
I would use this to test whether maps are balanced by letting the AI play a lot of matches and then comparing the results.
Any ideas?
Re: Simulate AI games with Python
Wesnoth has support for this, see the commandline options:
--nogui
--multiplayer
--scenario=<map>
--controller<number>=ai
--side<number>=<faction>
you can also use --algorithm to specify which ai to use.
--nogui
--multiplayer
--scenario=<map>
--controller<number>=ai
--side<number>=<faction>
you can also use --algorithm to specify which ai to use.
Re: Simulate AI games with Python
The attached python script is out of some thread about Python AIs some time ago, and might be a bit easier to use than directly using the above options.
- Attachments
-
aitest.txt
- (5.93 KiB) Downloaded 185 times
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Re: Simulate AI games with Python
Thank you really much. I'll work on implementing this 
