how do i program a guessing game?

This is a discussion on how do i program a guessing game? within the General AI Programming forums, part of the Cprogramming.com and AIHorizon.com's Artificial Intelligence Boards category; Hye guys am new to programming. i rely need to noe how do i code the following requirements: Each digit ...

  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
    1,625
    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
    1,625
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,671
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 07:15 PM
  5. need help with a guessing game program
    By davidnj732 in forum C++ Programming
    Replies: 3
    Last Post: 04-01-2003, 10:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21