public Game(bool? enableLogging = false, bool? autoFinish = false) { EnableLogging = enableLogging.HasValue && enableLogging.Value; AutoFinish = autoFinish.HasValue && autoFinish.Value; Tournament = new Tournament.Tournament(EnableLogging); CurrentBattleDetails = new BattleDetails(); }
public MainWindow(Tournament.Tournament tournament) { _tournament = tournament; InitializeComponent(); // Set the window's size Top = 0; Left = 0; Width = SystemParameters.WorkArea.Width; Height = SystemParameters.WorkArea.Height; InitScoreBoardView(); UpdateMatchTexts(); UpdateViewers(); }