Exemplo n.º 1
0
 static void game_GameCompleted(object sender, BigTwoPlayerEventArgs e)
 {
     Console.WriteLine();
     Console.WriteLine();
     Console.WriteLine("****************************************");
     Console.WriteLine("Congratulations {0}! You are the winner!", e.Player.Name);
     Console.WriteLine("****************************************");
     Console.WriteLine();
     Console.WriteLine();
     Console.WriteLine("Press any key to exit...");
     Console.ReadKey();
 }
Exemplo n.º 2
0
        static void game_SequenceCompleted(object sender, BigTwoPlayerEventArgs e)
        {
            Console.WriteLine("{0} won the sequence!", e.Player.Name);

            foreach (IPlayer player in game.Players)
            {
                Console.WriteLine("{0} has {1} cards remaining.", player.Name, player.CardCount);
            }

            Console.WriteLine();
            Thread.Sleep(1500);
        }
Exemplo n.º 3
0
 static void game_PlayerTurnStart(object sender, BigTwoPlayerEventArgs e)
 {
     //Console.WriteLine(e.Player.Name + " turn started.");
 }
Exemplo n.º 4
0
 static void game_PlayerTurnEnd(object sender, BigTwoPlayerEventArgs e)
 {
     Thread.Sleep(1000);
     //Console.WriteLine(e.Player.Name + " turn completed.");
 }