private void PrepareGame(Step step) { game = new Game(new GameOptions(step.CardNumber, GameModeFactory.Regular), log); time = new Time(); mainPanelDrawer = new MainPanelDrawer(pCartas, SetCheckButton); if (game.Players.Count > 1) { InfoSets.Visible = false; InfoMistakes.Visible = false; } game.StartGame(); DrawMainPanel(); DrawInfo(); SetCheckButton(); }
public MainView(GameOptions options) { InitializeComponent(); log = new WinFormLogger(LvwLog); game = new Game(options, log); time = new Time(); mainPanelDrawer = new MainPanelDrawer(pCartas, SetCheckButton); BtnHelp.Enabled = options.GameMode.IsTutorial; if (game.Players.Count > 1) { InfoSets.Visible = false; InfoMistakes.Visible = false; } game.StartGame(); DrawMainPanel(); DrawInfo(); SetCheckButton(); }