Results 1 to 3 of 3
  1. #1
    xjader is offline Member
    Join Date
    Oct 2013
    Posts
    4
    Rep Power
    0

    Default Help on my slot machine project

    Hi

    My partner and I trying to work on our project.
    Here is the link our code: Slot Machine

    We keep getting our weird slot above result
    ------------------------------|[-1, -1, -1]|------------------------------

    =======================>[8, 8, 4]<=========================

    ------------------------------|[9, 9, 5]|------------------------------

    We are trying to get this result
    ------------------------------|[7, 7, 3]|------------------------------

    =======================>[8, 8, 4]<=========================

    ------------------------------|[9, 9, 5]|------------------------------

    Our friend is trying to explain to us because
    default value for an integer is 0
    so if you do value = value - 1;
    that would give you -1

    Why did it work for slot below but not above. We tried to enter diffierent arrays but still would not work.

    HELP!

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,901
    Rep Power
    25

    Default Re: Help on my slot machine project

    Please post the code you are having problems with.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,358
    Rep Power
    6

    Default Re: Help on my slot machine project

    Quote Originally Posted by Norm View Post
    Please post the code you are having problems with.
    (... here, in this forum thread)
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Slot Machine Game
    By danthegreat in forum New To Java
    Replies: 2
    Last Post: 09-17-2011, 11:55 PM
  2. Replies: 0
    Last Post: 02-07-2011, 02:27 PM
  3. Slot Machine Project
    By nemoisback66 in forum New To Java
    Replies: 11
    Last Post: 11-17-2010, 04:20 PM
  4. Project in Virtual Machine
    By alex1970 in forum IntelliJ IDEA
    Replies: 0
    Last Post: 10-16-2009, 01:50 PM

Posting Permissions

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