This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package annalyn | |
import "fmt" | |
// CanFastAttack can be executed only when the knight is sleeping. | |
func CanFastAttack(knightIsAwake bool) bool { | |
if knightIsAwake == true { | |
return false | |
} else { | |
return true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lasagna | |
// TODO: define the 'OvenTime' constant | |
const OvenTime = 40 | |
// RemainingOvenTime returns the remaining minutes based on the `actual` minutes already in the oven. | |
func RemainingOvenTime(actualMinutesInOven int) int { | |
return OvenTime - actualMinutesInOven | |
} |