29 lines
747 B
Go
29 lines
747 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: First Turn Winner
|
||
|
//
|
||
|
// If the player wins on the first turn, then display
|
||
|
// a special bonus message.
|
||
|
//
|
||
|
// RESTRICTION
|
||
|
// The first picked random number by the computer should
|
||
|
// match the player's guess.
|
||
|
//
|
||
|
// EXAMPLE SCENARIO
|
||
|
// 1. The player guesses 6
|
||
|
// 2. The computer picks a random number and it happens
|
||
|
// to be 6
|
||
|
// 3. Terminate the game and print the bonus message
|
||
|
// ---------------------------------------------------------
|
||
|
|
||
|
func main() {
|
||
|
}
|