A C# console application that simulates a small football group stage (Croatia, Morocco, Belgium, Canada). The app allows you to train players, play matches with randomized results, manage the player roster, and view detailed statistics such as standings, match results, top scorers, and the best starting eleven based on ratings.
- Training: updates player ratings by a random percentage change
- Play Match: simulates group matches with randomized goals and updates standings
- Statistics: multiple reports (players, results, standings, scorers, best eleven)
- Player Management (CRUD): add, edit, and delete players
- Players stored in a dictionary with position (GK/DF/MF/FW) and rating
- Matches generate random goals and update:
- points (win/draw/loss)
- goals scored / conceded
- match results history
- “Best XI” selection based on ratings using a 4–3–3 formation:
- 1 GK, 4 DF, 3 MF, 3 FW
- Tracks scorers for Croatia matches (randomly assigned among forwards)
- Language: C#
- Type: Console application
- Data Structures: Dictionaries, LINQ sorting
- .NET SDK (recommended: .NET 6+)
If this code is inside a standard Console project:
dotnet runIf you only have a single .cs file and need to create a project:
dotnet new console -n FootballConsoleApp
cd FootballConsoleApp
# Replace Program.cs with your code
dotnet runAfter starting the application, choose options from the main menu:
- Odradi trening — updates player ratings
- Odigraj utakmicu — simulates matches and updates standings
- Statistika — shows reports (players, best XI, scorers, results, table)
- Kontrola igraca — add/edit/delete players
- Match goals are generated randomly.
- Player ratings change randomly during training and after matches.
- Data is stored in-memory (no database), so progress resets after closing the program.
- Save/load data to a file (JSON)
- Improve match simulation using player ratings and positions
- Add stronger input validation (avoid crashes on invalid input)
- Support additional groups or a knockout stage
DUMP-Internship-World Championship
Luce Latin
LinkedIn: https://hr.linkedin.com/in/luce-latin-a185022bb