コード例 #1
0
ファイル: Program.cs プロジェクト: UncleGus/dracula
 /// <summary>
 /// Determines if Dracula is playing False Tip-off to cancel Chartered Carriage
 /// </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 DraculaIsPlayingFalseTipoffToCancelCharteredCarriage(GameState game, DecisionMaker logic)
 {
     if (logic.ChooseToCancelCharteredCarriageWithFalseTipoff(game))
     {
         Console.WriteLine("Dracula is playing False Tip-off to cancel Chartered Carriage");
         game.Dracula.DiscardEvent(Event.FalseTipoff, game.EventDiscard);
         if (HunterPlayingGoodLuckToCancelDraculaEvent(game, Event.FalseTipoff, Event.CharteredCarriage, logic) > 0 ||
             HunterPlayingCharteredCarriageToCancelFalseTipOff(game, Event.FalseTipoff, Event.CharteredCarriage, logic) > 0)
         {
             return false;
         }
         return true;
     }
     return false;
 }