30 lines
672 B
Go
30 lines
672 B
Go
// For more tutorials: https://blog.learngoprogramming.com
|
|
//
|
|
// Copyright © 2018 Inanc Gumus
|
|
// Learn Go Programming Course
|
|
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
//
|
|
|
|
package main
|
|
|
|
// ---------------------------------------------------------
|
|
// EXERCISE: Verbose Mode
|
|
//
|
|
// When the player runs the game like this:
|
|
//
|
|
// go run main.go -v 4
|
|
//
|
|
// Display each generated random number:
|
|
|
|
// 1 3 4 🎉 YOU WIN!
|
|
//
|
|
// In this example, computer picks 1, 3, and 4. And the
|
|
// player wins.
|
|
//
|
|
// HINT
|
|
// You need to get and interpret the command-line arguments.
|
|
// ---------------------------------------------------------
|
|
|
|
func main() {
|
|
}
|