I need help with my guess game | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

I need help with my guess game

build a simple guessing game for two users. ---------------------------- 1. The application accepts inputs from user1 and user2 2. Based on user 1 inputs write a program that gives a random number in the range of 0 to the the number entered. Store the number in a variable called guess_number. Number generated randomly should be of type integer only. 3. Let user 2 guess the number by accepting his input. If user 2's guess is correct increase the score of user 2 by 1. 4. Repeat step 2 for user 1 to also guess and if correct also credit him 1 mark. 5. The user who gets to 10 first wins the game https://code.sololearn.com/cBf9W926KjvS/?ref=app

25th Mar 2021, 1:08 PM
Jarvis
Jarvis - avatar
1 Answer
+ 2
just is If Else basic.
26th Mar 2021, 12:59 AM
VuxxLong
VuxxLong - avatar