Monday, August 17, 2009

Working a lot on the simulation logical

First of all, here's how the simulation of a game works:

-Lines are loaded
-A team is selected to start with the puck (random) - since faceoffs arent implemented yet
-For each period, there's a number of possessions, so far i'm using 250 possessions
-Obviously, the first lines of each team gets more possessions than the other lines
-The rink is seperated in 4 zones



- Let's say your the home team and your in your own defensive zone (zone 1) , to be able to score, you have to be in the zone 4. You gota go from 1 to 2, 2 to 3 and 3 to 4.
- Let's say once again, the home team player has the puck in his own defensive zone (zone 1), he has 3 choices: skate to zone 2, pass to zone 2, or shoot. Obviously the shooting choice is not valid in this case.
- Whatever choice he makes, theres a formula that decides if the player succeed or no based on his attribute and the overall defense of the players on the ice his going against.
- Whatever results he gets, the number of possession decrease by 1.

Get it ?

Alright now, here's where am at so far:

Still a lot of shutout !!
Shots are always loopsided ! (a lot of 40 shots for a team and like 0 to 10 for the other)
Still big scores

I need to work on that this week.

No comments:

Post a Comment