31 lines
787 B
Go
31 lines
787 B
Go
// Copyright © 2018 Inanc Gumus
|
|
// Learn Go Programming Course
|
|
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
//
|
|
// For more tutorials : https://learngoprogramming.com
|
|
// In-person training : https://www.linkedin.com/in/inancgumus/
|
|
// Follow me on twitter: https://twitter.com/inancgumus
|
|
|
|
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() {
|
|
}
|