Some solutions for the julia path

This commit is contained in:
2025-08-04 19:44:03 +02:00
parent 5c52e8e34d
commit 8296c79f68
104 changed files with 4373 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
function can_do_fast_attack(knight_awake)
return !knight_awake
end
function can_spy(knight_awake, archer_awake, prisoner_awake)
return (knight_awake || archer_awake || prisoner_awake)
end
function can_signal_prisoner(archer_awake, prisoner_awake)
return !archer_awake && prisoner_awake
end
function can_free_prisoner(knight_awake, archer_awake, prisoner_awake, dog_present)
return (dog_present && !archer_awake) || (!dog_present && prisoner_awake && !knight_awake && !archer_awake)
end