Files
gleam-learning/guessing-game/src/guessing_game.gleam
markgerrard e9354a7920 first commit
2026-03-17 20:44:57 +00:00

10 lines
178 B
Gleam

pub fn reply(guess: Int) -> String {
case guess {
i if i < 41 -> "Too low"
i if i > 43 -> "Too high"
41 | 43 -> "So close"
42 -> "Correct"
_ -> "WAT"
}
}