Postby Pitto » Aug 16, 2015 21:49
@BasicCoder2
Thanks for your post. Jasc has a basilar form of AI, based upon tactic and pre-computed player's behaviour.
The tactic involves the way a player move himself when he is without ball, the behaviour has effect on the action that a player performs when has the ball. There's a behaviour's pre-computed table (_data/bhv.dat) based on the tile (from 0 to 34) where the player is over. For example, if the is in the X tile, has a choice of action to perform based upon a percentage (for example 15% pass to other player; 20% shoot on goal; 15% go ahead... and so on). At this moment –for debugging- some actions are disabled.
If the player shoots on goal another function returns the best angle of shoot based upon player's position, goalkeeper's position, and net's position.
In next software releases I wish implement a A* Algorithm to substitute the pre-computed table of behaviour, at the moment every player is blind, every choice when has the ball is statistically pre-computed.
I have to do little steps, I'm a beginner.
Thank You for Your Feedback
P.S.
Robots that I saw in the video sometimes would deserve a yellow card. :)