public MatchState(Team firstTeam, Team secondTeam, Referee referee)
 {
     Team1     = firstTeam;
     Team2     = secondTeam;
     Referee   = referee;
     CareTaker = new СareTaker();
 }
Beispiel #2
0
 public PenaltySerieState(Team firstTeam, Team secondTeam)
 {
     Team1     = firstTeam;
     Team2     = secondTeam;
     CareTaker = new СareTaker();
 }
Beispiel #3
0
        public void PrintMatchResult(СareTaker careTaker)
        {
            var state = careTaker.LastState();

            Console.WriteLine($"{state.FirstTeam}:{state.FirstTeamScore}-{state.SecondTeam}:{state.SecondTeam}");
        }