Results 1 to 4 of 4

Thread: calculator game problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2005
    Posts
    29

    calculator game problem

    i am creating a simple game on a TI-83 plus calculator where you pick a number and the calculator randomly creates a number and tells you if you're right or wrong.
    The problem is that i can't get it to store the randomly created int. the code is:


    Input "Guess?", X
    If X>0
    Then
    *randInt(1,10,1) -> Y*
    If X=Y
    Then
    Disp "Correct"
    Else
    If X doesn't = Y
    Then
    Disp "Incorrect", {Y}
    Pause
    prgmGAME

    *code*=need help with this line

  2. #2
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    Re: calculator game problem

    I'm not sure what the problem is, but the programming language you're using is some form of BASIC, not C/C++, so I've moved your thread to the "other BASIC" section.
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  3. #3
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048

    Re: calculator game problem

    incidentally, i believe to store something in y you do y->whatever

  4. #4
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Re: calculator game problem

    yes you need to do
    Code:
    y->randInt(1,10,1)
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width