Page 1 of 1

Soccer model with more AI opponents

PostPosted: 31 Aug 2019, 08:29
by jin
Hi, I've played stk for quite a long time, but didn't really contribute to it, except for helping with some translations. Hope I can do something now :)

I like the soccer mode and played it a lot. Now I can easily get 20 vs 0 in less than 10 minutes when playing with AIs. If there are more AI opponents, it will be harder to win. I looked at the code, and found it is easy to control the number of AI in World::setAITeam(). You can see the attached picture: 1 red (me) vs 7 blue AIs.

Then the question is: how to control the distribution of AIs. The current stk code distributes AIs to make sure the two teams are balanced. If we want to distribute the AIs unbalanced, we need an additional setting. I am thinking of adding a checkbox: make all AI blue, so if a player chooses team red, he/she can play against the chosen number of AIs. A better solution should be able to choose the number of AIs for each team. Any ideas? In order to add the checkbox, I guess I should modify track_info_screen.cpp?

Re: Soccer model with more AI opponents

PostPosted: 01 Sep 2019, 03:05
by benau
ok

Re: Soccer model with more AI opponents

PostPosted: 01 Sep 2019, 13:54
by jin
Thanks for the reply, short and strong! :D I guess at least you do not object to this idea :) So I will continue the coding. I just start reading the stk code, so I probably will come up with more questions here. Btw, this idea is actually related to #3903. Having smarter AI may be hard, so increasing the number of AI opponents seems to be the easier solution.