Add a message at the beginning of the game

This commit is contained in:
Gabriel Augendre 2023-03-15 18:08:34 +01:00
parent 1d85612173
commit 7efe5d8b96

View file

@ -1,11 +1,14 @@
package main package main
import ( import (
"fmt"
"math/rand" "math/rand"
"os" "os"
) )
func main() { func main() {
random := rand.Intn(100) max := 100
fmt.Printf("I've picked a number between 0 and %d. Can you guess it?\n", max)
random := rand.Intn(max)
LoopUntilFound(os.Stdout, os.Stdin, random) LoopUntilFound(os.Stdout, os.Stdin, random)
} }