Thread: how do i program a guessing game?

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    10

    how do i program a guessing game?

    Hye guys am new to programming. i rely need to noe how do i code the following requirements:


    • Each digit of the number cannot be repeated
    • The first digit can start with 0
    • If the number entered by the user has repeating digits, the user has to be asked to re-enter a new number
    • Each attempt of guessing need to be numbered
    • The user will be told how many digits correctly positioned and how many digits wrongly positioned after each guess
    • The user will be congratulated if the user successfully guessed the number.
    • The user will be asked whether to replay or not at the end of the game


    Plz help me

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    OMG! Someone plz ban his/her ass!
    Devoted my life to programming...

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    Quote Originally Posted by GReaper View Post
    OMG! Someone plz ban his/her ass!
    Sorry for that, I got a little over the edge there...
    Devoted my life to programming...

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Excess threads closed!
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do i program a guessing game?
    By Silsilay in forum C++ Programming
    Replies: 10
    Last Post: 04-02-2012, 11:15 AM
  2. how do i program a guessing game?
    By Gayathri in forum Windows Programming
    Replies: 3
    Last Post: 03-28-2012, 11:46 AM
  3. how do i program a guessing game?
    By Silsilay in forum Windows Programming
    Replies: 5
    Last Post: 03-28-2012, 08:15 AM
  4. help with guessing game program
    By dc0n in forum C++ Programming
    Replies: 13
    Last Post: 02-07-2006, 08:15 PM
  5. need help with a guessing game program
    By davidnj732 in forum C++ Programming
    Replies: 3
    Last Post: 04-01-2003, 11:59 AM