Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions solutions/csharp/annalyns-infiltration/1/AnnalynsInfiltration.cs
Original file line number Diff line number Diff line change
@@ -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");
}
}