many thanks to both of you
Hey zavael and welcome to the forums.
Simulating a football game (or any sports game in that manner) is quite tricky, but since you're not visualizing it you can get away with a lot of trickery....
yes, thats what I wanted - to simplify the proces... I wanted to avoid watching the positions of ball and players, everything I wanted to calculate from the odds.. for example - if a blocked shot occurs I simply decide which player did that (in 50% it was cetral defender, 20% it was central or defensive midfielder, in 20% it was side defender and in 10% it could be anyone else). In this way I wanted to decide everything. I know it will be hard to decide the percentages corectly, but whit a try-repair method I could get some nice results and the manager will not notice if it is really simulating or not.
Of course the input data will be sofisticated than just the overall for two teams... i want to describe 3 skills for players - mental, technical and physical, all of them from 20 to 50. from this, the overall for player will be summary of the three attributes (for golakeeper the physical will be probably halved) then from the tactic that was chosen by manager there will be 4 streghts for team:
at the attack chance occurence, i will generate the odds for every action that comes possible to follow and than decide from random generator if the chance was succesfull.. for example the OUT will have 10% to occur, Foul 5% (plus modified by overall mental skill of team), Lost possession (calculated from midfield streghts) etc...
as to correct myself, not allways there will be a comentary for manager. He will have three options how to watch the game:
just the final result as the manager was not at the game himself
just watch the time run and see only result changes, injuries or card changes (example)
and the third will be with commentary instead the picture in the middle of screen (its just for imagine, not my ui design)
but the commentary will be in way that the time will proceed minute after minute and in 5th minute of the game there will be first commentary on screen, after it finishes there can be again 10 min without comment and so on.. in this way I will handle if both equal teams are playing defensively = few comments will be from the boring game, and vice versa
Let me focus on a different part
If the above is your goal (no pun intended), I'd say first write the management part, and at first reduce the 'game' to drawing two random numbers that represent the end result.
yes that was my first approach, but than i realized that while I will be making the management part, the testers (community around other manager) can test in console the behaviour of my engine and give me feedback, so I can adjust the odds for actions or see if they are happy with this count of actions or not...
it will be just the first version of engine, I would like to use MVC pattern to easily replece the engine with new version
I am a bit affraid of the graphics of ui (my idea is WPF but not definitely decided) and database as how to handle this amount of data and keep it fast and lightweight