4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

Learning To Code #6 (Number Guessing Game)

Number guessing game. (Exercise for beginners).

  1. Ask the user for two numbers.
  2. Generate a random number between these two numbers.
  3. Let the game begin.
    You have to ask for a number, if it's the same as the random number, then it's game over and the user has won.
  4. To make it more interesting -
    If the user's input is bigger than the random number, print out "The random number is smaller".
    If the user's input is smaller than the random number, print out "The random number is bigger".

Here is an example of how it should work.
guess.png

As always, if you got any questions then feel free to hit me up!🤓
Peace!✌️

10 upvotes 1 downvotes $1.92

Replies (0)

Conversation

No replies yet

Replies will appear here as people join the conversation.

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: