Soccer model with more AI opponents

Soccer model with more AI opponents

Postby jin » 31 Aug 2019, 08:29

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?
Attachments
Screenshot_soccer_small.jpg
Soccer mode with more AI opponents
Screenshot_setting_small.jpg
Proposed setting screen
jin
 
Posts: 18
Joined: 29 May 2013, 17:53

Re: Soccer model with more AI opponents

Postby benau » 01 Sep 2019, 03:05

ok
Image
benau
STK Moderator
 
Posts: 136
Joined: 08 Dec 2015, 17:32

Re: Soccer model with more AI opponents

Postby jin » 01 Sep 2019, 13:54

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.
jin
 
Posts: 18
Joined: 29 May 2013, 17:53

Who is online

Users browsing this forum: No registered users and 1 guest