Esempio n. 1
0
        public static void Main(string[] args)
        {
            var players = new IPlayer[]
            {
                //new HumanPlayer("You"),
                new ComputerPlayer("CPU 1"),
                new ComputerPlayer("CPU 2"),
                new ComputerPlayer("CPU 3"),
                new ComputerPlayer("CPU 4")
            };

            game                    = new BigTwoGame(players);
            game.GameStarted       += game_GameStarted;
            game.GameCompleted     += game_GameCompleted;
            game.PlayerTurnStart   += game_PlayerTurnStart;
            game.PlayerPlayedTurn  += game_PlayerTurn;
            game.PlayerTurnEnd     += game_PlayerTurnEnd;
            game.SequenceCompleted += game_SequenceCompleted;

            Console.ReadKey();
            game.Start();
        }