Creating a new AI for StreetSoccer
StreetSoccer

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.

points criteria1. 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 move3. 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).