Esempio n. 1
0
 public void ExecuteNight()
 {
     foreach (var p in Village.LivingPlayers())
     {
         p.RoleLogic.ExecuteNightAction();
     }
 }
Esempio n. 2
0
        public void ExecuteDay()
        {
            foreach (var player in Village.LivingPlayers().Shuffle())
            {
                player.RoleLogic.ExecuteDayAction();
            }

            Village.TrialStrategy.ExecuteTrial();
        }
Esempio n. 3
0
        private bool IsEvilVictory()
        {
            //If evil is destroyed, the village wins.
            if (Village.LivingPlayers().Count == 0)
            {
                return(false);
            }

            if (Options.UseParityHunter && Village.IsAnyAlive(Roles.Hunter))
            {
                var evil    = Village.LivingEvilPlayers().Count;
                var hunters = Village.LivingCount(Roles.Hunter);

                return(evil > hunters);
            }

            return(Village.HasWerewolves());
        }