Skip to content

Latest commit

 

History

History
executable file
·
127 lines (83 loc) · 2.32 KB

annalyn-doc.md

File metadata and controls

executable file
·
127 lines (83 loc) · 2.32 KB

annalyn

import "annalyn"

Index

func CanFastAttack(knightIsAwake bool) bool

CanFastAttack can be executed only when the knight is sleeping

Example

{
	fmt.Println(CanFastAttack(true))

}

Output

false

func CanFreePrisoner(knightIsAwake, archerIsAwake, prisonerIsAwake, petDogIsPresent bool) bool

CanFreePrisoner can be executed if the prisoner is awake and the other 2 characters are asleep or if Annalyn's pet dog is with her and the archer is sleeping

Example

{
	fmt.Println(CanFreePrisoner(false, true, false, false))

}

Output

false

func CanSignalPrisoner(archerIsAwake, prisonerIsAwake bool) bool

CanSignalPrisoner can be executed if the prisoner is awake and the archer is sleeping

Example

{
	fmt.Println(CanSignalPrisoner(false, true))

}

Output

true

func CanSpy

func CanSpy(knightIsAwake, archerIsAwake, prisonerIsAwake bool) bool

CanSpy can be executed if at least one of the characters is awake

Example

{
	fmt.Println(CanSpy(false, true, false))

}

Output

true

Generated by gomarkdoc