public MatchState(Team firstTeam, Team secondTeam, Referee referee) { Team1 = firstTeam; Team2 = secondTeam; Referee = referee; CareTaker = new СareTaker(); }
public PenaltySerieState(Team firstTeam, Team secondTeam) { Team1 = firstTeam; Team2 = secondTeam; CareTaker = new СareTaker(); }
public void PrintMatchResult(СareTaker careTaker) { var state = careTaker.LastState(); Console.WriteLine($"{state.FirstTeam}:{state.FirstTeamScore}-{state.SecondTeam}:{state.SecondTeam}"); }