Wednesday 7 September 2022

v.0.5-dev - Skill 'Leap' is implemented

Yeahhhhh!  Last skill that was not yet implemented, 'Leap' has been developed! In the list of actions available, there is now the 'Leap' button:


This is not an 'action' like Pass or Blitz, but it was convenient to put the button there.

The button is available only if a player with skill 'Leap' is selected, if he has not yet used it this turn and if it remains at least 2 moves. Then you see the possible leap location (in magenta):

A right click on the square and the leap is done (at the cost of 2 moves)!

Another way to use the skill (the simplest one!) is just to let the path finding algorithm find when leap is needed. Example:

If your mouse is on the square '67' (67 is in reality the probability to reach this square, and yes print screen is removing the mouse icon 👎), you see as usual the yellow path and in magenta the leap destination. So the 'Slann' player will move two squares, then leap then move again if leap was successful! Notice algorithm doesn't suggest to do 2 dodges instead of the leap, because the probability of success is lower. If probability of dodge is equal to the probability of leap, then dodge is selected - because it's interesting to keep the leap for later!

Examples:

If selected player wants to go one square right, leap is suggested (to avoid to dodge in a square where 2 opposites players have a tackle area)

However, on the upper square, it is better to dodge (square is yellow = classical move and here with dodge)!

In this last example, dodge is done although leap has the same probability (because player has skill 'Very Long Legs'). But if user really wants to leap, he still can do it - by pressing the 'Leap' button.

And what about the AI? This is cool: as the path finding algorithm is already used by the AI for each move, nothing has to be done! For every action AI will take 'Leap' possibility into account: for moving, for moving then pass, for moving then foul, for blitz and so on!

This implementation and many other fixes will be available in v0.5. - coming soo... euh no, not any idea of when it will be available, I still have some tasks to finish 💀!

Current last version is still this one.