Ejemplo n.º 1
0
 public void Pass(FantanPlayer player)
 {
     if (player.GetPass() > PASS_LIMIT)
     {
         Console.WriteLine(player.Name + "さんが敗者です。");
         DeregisterPlayer(player);
     }
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Master master = new FantanMaster();

            Table field = new FantanTable();

            Rule rule = new FantanRule();

            Player murata = new FantanPlayer("村田", master, field, rule);
            Player yamada = new FantanPlayer("山田", master, field, rule);
            Player saito  = new FantanPlayer("斉藤", master, field, rule);

            master.RegisterPlayer(murata);
            master.RegisterPlayer(saito);
            master.RegisterPlayer(yamada);

            Hand trump = CreateTrump();

            master.PrepareGame(trump);

            master.StartGame();

            Console.ReadLine();
        }