1 replies. Last post: 2014-05-01Reply to this topic Return to forum
I am planning to create a new AI for StreetSoccer called 1K.
The algorithm is simple. Analyse the next possible moves, allot points for each move based on the following criteria and then select the move with the highest points.
1. If the move results in a goal, give 100 pts to that move.
2. If n is the proximity average of your team’s players to the ball allot ( 10 – n) points to the move
3. If m is the the proximity average of your opponent’s players to the ball allot m points to the move
Sum these up and that must give you the total points for the move.
Proximity average is calculated by taking sum of minimum distance each player of a team has to travel to reach the ball and divide by number of players (5).
Please tell me if there are any changes needed to the AI.