Mar-28-2020, 10:42 AM
Hi,
I'm new to programming and I need to make a guessing game.
Python needs to generate a random code containing 4 digits, the 4 digits have to all be different and can only be numbers from 1 to 9.
The player gets 15 turns to guess the code. With each try the player gets feedback about which numbers are correct but are in the wrong place, or which numbers are correct and are in the right place.
I've been trying different approaches for the last couple of days but can't seem to figure it out.
Help please?
I'm new to programming and I need to make a guessing game.
Python needs to generate a random code containing 4 digits, the 4 digits have to all be different and can only be numbers from 1 to 9.
The player gets 15 turns to guess the code. With each try the player gets feedback about which numbers are correct but are in the wrong place, or which numbers are correct and are in the right place.
I've been trying different approaches for the last couple of days but can't seem to figure it out.
Help please?