+ 1

I WONDER IF ANYONE IS ABLE TO WRITE A CODE FOR THIS SIMPLE GAME IN PYTHON

In Bagels, a deductive logic game, you must guess a secret three-digit number based on clues. The game offers one of the following hints in response to your guess: “Pico” when your guess has a correct digit in the wrong place, “Fermi” when your guess has a correct digit in the correct place, and “Bagels” if your guess has no correct digits. You have 10 tries to guess the secret number.

9th Dec 2024, 5:55 PM
Betemariyam Abate
6 Respuestas
+ 6
Hi, Betemariyam Abate Bagels is a fun, interactive game where you guess a secret number step by step. SoloLearn isn’t the best place to build it since it doesn’t allow live interaction. Instead, try using tools like IDLE, Thonny, or VS Code to write and test your code directly on your computer. What to Focus On: • Plan your code: Think about what the player will type (guesses), what the program should respond with (like “Pico”), and how many rounds it should run. • Brush up on the basics: Practice using input() for guesses, print() for feedback, and simple things like if-statements and loops (for, while). • Work with strings: Learn how to check individual digits using indexing (like guess[0]). • Add some randomness: Use Python’s random library to create a secret number. These skills will help you break the problem into smaller pieces and build the game step by step. Have fun coding!
10th Dec 2024, 5:59 PM
Per Bratthammar
Per Bratthammar - avatar
+ 5
Betemariyam Abate the question and answer forum is for code related issues and troubleshooting not for homework or write a code for me projects. Please follow the forum guidelines. https://www.sololearn.com/discuss/1316935/?ref=app https://www.sololearn.com/discuss/3021159/?ref=app
9th Dec 2024, 6:02 PM
BroFar
BroFar - avatar
+ 2
You could easily make a game like that in any programming language. Go ahead and try. If you get stuck, ask us here about the issue you encounter and share your code. We'll nudge you in the right direction.
9th Dec 2024, 7:43 PM
Jerry Hobby
Jerry Hobby - avatar
0
श्री राधे
11th Dec 2024, 1:08 AM
yash lodhi
yash lodhi - avatar
0
I should make programmer
11th Dec 2024, 2:43 AM
Naeem Sahu
Naeem Sahu - avatar
0
Hello
11th Dec 2024, 7:55 AM
Maxamed Maxamuud
Maxamed Maxamuud - avatar