Skip to content

red-outrunner/RedonGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

By weo fuzile(red-outrunner)

I have created a number guessing game using golang.

Guessing Game

Welcome to the Guessing Game! This is a simple console-based game where the player tries to guess a randomly generated number between 1 and 100.

How to Play

  1. Run the game by executing the provided code.
  2. You will be prompted with a message asking you to guess a number between 1 and 100.
  3. Enter your guess.
  4. If your guess is too low, the game will prompt you to try a higher number.
  5. If your guess is too high, the game will prompt you to try a lower number.
  6. Continue guessing until you correctly guess the secret number.
  7. Once you guess the number correctly, the game will display a congratulatory message along with the number of attempts it took you to guess correctly.
  8. You can play the game again by running it again.

Running the Game

To run the game, you need to have Go installed on your system. If you don't have Go installed, you can download and install it from the official Go website.

After installing Go, follow these steps:

  1. Copy the provided code into a file named main.go.
  2. Open a terminal or command prompt.
  3. Navigate to the directory where you saved the main.go file.
  4. Run the following command to compile and execute the code:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages