Visual Basic Mini Game Help

Discussion in 'Visual Basic ( VB )' started by ajl232, May 16, 2012.

  1. ajl232

    ajl232 New Member

    Joined:
    May 16, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Can anyone help me code this? It's a college level basic class:

    The game called Lottery requires the user to enter a number between 101 and 200, trying to match one (or more) of ten lottery numbers that you have randomly generated. Within your code the ten lottery num-bers (each in the range 101 – 200) will be the stored in a ten-element array.
    When the user clicks the Play button, your program should respond to the user’s guess by displaying a mes-sage box indicating whether the guess failed to match any lottery number, matched one, or matched more than one. The user can guess up to five times before you automatically generate a new set of random num-bers (a new set should also be generated if the user clicks the Reset button). And of course, you should re-spond appropriately if the user fails to provide the proper input.
    The Quit button should take the user back to the main menu window (and data from this form should not be retained). Note: you must use Debug.Writeline to display the list of ten randomly-generated numbers to fa-cilitate your testing as well as our grading of this game.
     
  2. ManzZup

    ManzZup New Member

    Joined:
    May 9, 2009
    Messages:
    278
    Likes Received:
    43
    Trophy Points:
    0
    Occupation:
    Production Manager:Software @ ZONTEK
    Location:
    Sri Lanka
    Home Page:
    http://zontek.zzl.org
    only thing you will need the the random() function
    other parts are basic
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice