Ejemplo n.º 1
0
 /// <summary>
 /// Checks to see if Dracula is playing False Tip-off when a Hunter attempts to catch a train by rolling the die
 /// </summary>
 /// <param name="game">The GameState</param>
 /// <param name="logic">The artificial intelligence component</param>
 /// <returns>True if Dracula successfully plays False Tip-off</returns>
 private static bool DraculaIsPlayingFalseTipoffToDelayHunter(GameState game, DecisionMaker logic)
 {
     if (logic.ChooseToDelayHunterWithFalseTipoff(game))
     {
         Console.WriteLine("Dracula is playing False Tip-off to delay the train");
         game.Dracula.DiscardEvent(Event.FalseTipoff, game.EventDiscard);
         if (HunterPlayingGoodLuckToCancelDraculaEvent(game, Event.FalseTipoff, Event.FalseTipoff, logic) > 0 ||
             HunterPlayingCharteredCarriageToCancelFalseTipOff(game, Event.FalseTipoff, Event.FalseTipoff, logic) > 0)
         {
             return false;
         }
         return true;
     }
     return false;
 }