Skip to content

Instantly share code, notes, and snippets.

View DatoKhojava's full-sized avatar

Dato Khojava DatoKhojava

View GitHub Profile
@DatoKhojava
DatoKhojava / annalyns_infiltration.go
Created March 30, 2024 22:46
Annalyn's Infiltration
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
@DatoKhojava
DatoKhojava / lasagna.go
Created March 29, 2024 20:29
Gopher's Gorgeous Lasagna
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
}