Beispiel #1
0
        public void StartNewGame()
        {
            Game game = new Game(players);

            Team1.ClearTricks();
            Team2.ClearTricks();
            game.GameFinished        += Game_GameFinished;
            game.ActivePlayerChanged += Game_ActivePlayerChanged;
            game.RoundFinished       += Game_RoundFinished;
            game.RoundStarted        += Game_RoundStarted;
            games.Add(game);
            game.Start();

            if (GameStarted != null)
            {
                GameStarted(this, new EventArgs());
            }
        }