Difference between revisions of "Machine Learning Recruiter"
From The Battle for Wesnoth Wiki
SeattleDad (talk | contribs) (→Playing against the ML Recruiter) |
SeattleDad (talk | contribs) (→Using ML Recruiter) |
||
Line 2: | Line 2: | ||
==Using ML Recruiter== | ==Using ML Recruiter== | ||
− | + | ==Playing against the ML Recruiter== | |
# From the main menu, choose "Multiplayer" | # From the main menu, choose "Multiplayer" | ||
# Choose "Local Game" | # Choose "Local Game" |
Revision as of 04:04, 3 August 2012
This page documents the new machine learning recruiter submitted as a patch for Wesnoth 1.11
Contents
Using ML Recruiter
Playing against the ML Recruiter
- From the main menu, choose "Multiplayer"
- Choose "Local Game"
- Pick a map and adjust settings as desired. ML Recruiter has been trained with the default setting for village gold and support, but it should work fine on other settings
- Hit Okay
- For one side, Choose Player/Type-->Computer Player and then either ML AI (Recommended) or ML AI (Pure)
- For the opponent, either play against it yourself (pick your name) or watch it play the default AI (Computer Player-->RCA AI)
Testing the ML Recruiter in batch mode
Testing in batch mode is easy. After applying the ML Recruiter patch, copy utils/ai_test/ai_test2.cfg to the directory in which you want to run the experiment. Then edit the first line of the .cfg file, "path_to_wesnoth_binary" to point to your Wesnoth executable. Then adjust faction1 and faction2 to point to the factions you want to experiment with and point ai_config1 at the ML configuration file you want to try out. Finally, to make everything easier, add the following to your path:
[Wesnoth_Install]/utils/ai_test/
Now you can test Wesnoth in batch as follows:
ai_test2.py ai_test2.cfg
Experiments: ML Recruiter vs. RCA AI Recruiter
How the ML Recruiter works
Retraining the ML Recruiter
Known issues
Bugs
- Haven't added new Waffles files to Visual C++, so it won't compile under VC++. I need some help with this.
- ML Recruiter runs fine vs. RCA AI and vs. human, but can't run against itself (ML Recruiter vs. ML Recruiter). This appears to be an issue with Lua in Wesnoth 1.11 and not with ML Recruiter
Limitations
- Only tested on two-player multiplayer games. Doesn't work when there are more than two leaders on the map.
- Works optimally on the following two-player maps (trained on these)
- Weldyn Channel
- The Freelands
- Den of Onis
- Fallenstar Lake
- Tested on all other two-player maps and runs nearly as well except it crashes on the following:
- Aethermaw, Hornshark Island, Dark Forecast, Sablestone Delta, Elensefar Courtyard, Silverhead Crossing