FreeCol / freecol

FreeCol: FreeCol is a turn-based strategy game based on the old game Colonization, and similar to Civilization. The objective of the game is to create an independent nation.
GNU General Public License v2.0
581 stars 170 forks source link

Developing a bot #106

Open aidiss opened 2 years ago

aidiss commented 2 years ago

I consider developing a bot to play this game. Any tips for doing that? I guess the AI exists in a for non player civs. Would it be possible for AI to play this as the player watches?

wintertime commented 2 years ago

If you change some code you could probably make an AI only game.

mpope042 commented 2 years ago

For testing, I just move the player units into the top right corner and let the AIs run. A full observer player type does not exist, but is probably not that hard to do.

I have speculated as to what would be needed to make an actually good AI/bot. It could be done, just look at what google have done with Starcraft. However I am not google's AI group:-) so I doubt the full ML method is within scope ATM. OTOH, perhaps something that needs less than a basement full of smoking CPUs to train might be possible. The good news is that to do better than the current AI is not a high bar.