JavaScript is required to use Bungie.net

Forums

originally posted in: Java savvy people come here.
8/31/2013 7:23:26 PM
3
*Had to program 3 casino games in java for final project.* *Craps was one of them.* I would help, but I won't for a couple reasons. The first one is a program that small you should be able to check yourself. Two I don't have the necessary program installed on this computer to run that code and I don't feel like looking at it in order to find errors since running it is just far easier. Finally you are consistently an ass to people on here and as a result I don't feel like helping.
English

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Edited by colbyrules8: 8/31/2013 7:27:22 PM
    It's not about it being hard or easy, the program runs perfectly. I was just wondering about the logic behind it and if the odds are coming out correctly as I have never played craps. I'm getting around a 50/50 chance of a win or a loss and ending up with around 1200 dollars from the method of betting used in my program.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • A 50/50 chance of winning is kind of expected for the most part. Since rolling a 7 is the most likely rolls you can get. If you don't win on the first round and say your point becomes a 4 then you have only a 3 in 36 chance of winning while getting a 7 is a 1 in 6 chance of winning. Looking at your code there is nothing wrong with it as far as I can tell, but I can't run it to make sure it is correct and I haven't programmed in java in a while. However since you say it runs fine and it gives you the proper results I think you should be good.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Alright, thanks man.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon