diff --git a/solutions/csharp/annalyns-infiltration/1/AnnalynsInfiltration.cs b/solutions/csharp/annalyns-infiltration/1/AnnalynsInfiltration.cs new file mode 100644 index 0000000..f8f1764 --- /dev/null +++ b/solutions/csharp/annalyns-infiltration/1/AnnalynsInfiltration.cs @@ -0,0 +1,26 @@ +static class QuestLogic +{ + public static bool CanFastAttack(bool knightIsAwake) + { + return !knightIsAwake; + throw new NotImplementedException("Please implement the (static) QuestLogic.CanFastAttack() method"); + } + + public static bool CanSpy(bool knightIsAwake, bool archerIsAwake, bool prisonerIsAwake) + { + return knightIsAwake || archerIsAwake || prisonerIsAwake; + throw new NotImplementedException("Please implement the (static) QuestLogic.CanSpy() method"); + } + + public static bool CanSignalPrisoner(bool archerIsAwake, bool prisonerIsAwake) + { + return prisonerIsAwake && !archerIsAwake; + throw new NotImplementedException("Please implement the (static) QuestLogic.CanSignalPrisoner() method"); + } + + public static bool CanFreePrisoner(bool knightIsAwake, bool archerIsAwake, bool prisonerIsAwake, bool petDogIsPresent) + { + return (petDogIsPresent && !archerIsAwake) || (!petDogIsPresent && prisonerIsAwake && !knightIsAwake && !archerIsAwake); + throw new NotImplementedException("Please implement the (static) QuestLogic.CanFreePrisoner() method"); + } +}