Skip to content

Football team management and match simulation console app built in C#. DUMP-Internship-World Championship

Notifications You must be signed in to change notification settings

LuceLatin/Football-Team-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Football Team Manager (Console App) — C#

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.


Features

Main Menu

  • 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

Player & Match Logic

  • 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)

Tech Stack

  • Language: C#
  • Type: Console application
  • Data Structures: Dictionaries, LINQ sorting

Getting Started

Prerequisites

  • .NET SDK (recommended: .NET 6+)

Run

If this code is inside a standard Console project:

dotnet run

If 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 run

How to Use

After starting the application, choose options from the main menu:

  1. Odradi trening — updates player ratings
  2. Odigraj utakmicu — simulates matches and updates standings
  3. Statistika — shows reports (players, best XI, scorers, results, table)
  4. Kontrola igraca — add/edit/delete players

Notes

  • 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.

Future Improvements

  • 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

Internship-2-C-Sharp

DUMP-Internship-World Championship

Author

Luce Latin
LinkedIn: https://hr.linkedin.com/in/luce-latin-a185022bb

About

Football team management and match simulation console app built in C#. DUMP-Internship-World Championship

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages