Python Forum
Guessing game with 4 different digits
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Guessing game with 4 different digits
#1
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?
Reply


Messages In This Thread
Guessing game with 4 different digits - by LinseyLogi - Mar-28-2020, 10:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Play again, in a guessing game banidjamali 4 11,971 Jan-22-2021, 06:23 AM
Last Post: banidjamali
  Help - random number/letter guessing game juin22 1 3,260 Aug-16-2020, 06:36 AM
Last Post: DPaul
  making a guessing number game blacklight 1 2,247 Jul-02-2020, 12:21 AM
Last Post: GOTO10
  Guessing game with comparison operators Drone4four 9 13,939 Dec-02-2018, 06:12 PM
Last Post: ichabod801
  Guessing Game "limit 4 attempts" help rprollin 3 19,939 Jun-23-2018, 04:37 PM
Last Post: ljmetzger
  Name guessing game in python Liquid_Ocelot 6 15,150 Apr-01-2017, 12:52 PM
Last Post: ichabod801
  guessing script simon 3 5,691 Oct-10-2016, 01:47 PM
Last Post: simon
  trying to get my random number guessing game to work! NEED HELP RaZrInSaNiTy 4 7,014 Oct-06-2016, 12:49 AM
Last Post: tinabina22

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020