I want to create a FIFA soccer solution in OOP (using C# in my case). For now, I need to represent: Teams, Groups (we have H groups), and Games.
What I did is creating those classes:
- Team - which contains several properties like teamName, score, wins etc...
- Game - which contains TeamA,TeamB (Both Team objects) and 2 properties TeamAScore,TeamBScore.
- Group - contains: Property GroupName, array of Team objects (size 4), List of Games, AddGame method
- FIFA - contains an array of Groups objects (size of array 7)
I need a method that prints all info of a team: including data from Team object (TeamName, score, wins...) + Team GroupName of the Team + All games of that team. For that I will have to create this method in the FIFA class, I guess.
I'm not fully content which this layout but can't really tell why. Any faults here? Suggestions?