New OOTS products from CafePress
New OOTS t-shirts, ornaments, mugs, bags, and more
Results 1 to 14 of 14

Thread: Close Please.

  1. - Top - End - #1
    Dwarf in the Playground
     
    Kobold

    Join Date
    Oct 2007
    Gender
    Male

    Default Close Please.

    Close please, thread pointless.
    Last edited by WrstDmEvr; 2007-11-11 at 12:04 PM.
    I apologize for the quality of the above post.

  2. - Top - End - #2
    Firbolg in the Playground
     
    MCerberus's Avatar

    Join Date
    Oct 2007
    Location
    St. Louis
    Gender
    Male

    Default Re: Hit Calculator

    Hmm.. if you don't mind me attempting to break it (I am a CS major so I know that breaking it is the best way to get something fixed).

    Attacker Bonus: +30
    2nd Attacker Bonus: +0
    Target AC: 25
    Number of Hits: 100000

    How much more likely (%) Will attacker 1 hit compared to attacker 2?


    If it works the result should be 90% because attacker 1 will always have a 5% miss chance and attacker 2 will always have a 5% hit chance.
    Ask me about our low price vacation plans in the Elemental Plane of Puppies and Pie
    Spoiler
    Show

    Evoker avatar by kpenguin. Evoker Pony by Dirtytabs. Grey Mouser, disciple of cupcakes by me. Any and all commiepuppies by BRC

  3. - Top - End - #3
    Dwarf in the Playground
     
    Kobold

    Join Date
    Oct 2007
    Gender
    Male

    Default Re: Hit Calculator

    yeah. forgot to put in the natural one

    EDIT: just added it. 95% chance for first, 4.3 for second.

    I feel strangely confident.

    EDIT#2: confirmed with a second test of 1 million hits
    Last edited by WrstDmEvr; 2007-11-10 at 09:33 PM.
    I apologize for the quality of the above post.

  4. - Top - End - #4
    Firbolg in the Playground
     
    MCerberus's Avatar

    Join Date
    Oct 2007
    Location
    St. Louis
    Gender
    Male

    Default Re: Hit Calculator

    Quote Originally Posted by WrstDmEvr View Post
    yeah. forgot to put in the natural one
    well that isn't too hard to fix if you're using a recursive method it's another base case and another if/switch if you're iterative.
    Ask me about our low price vacation plans in the Elemental Plane of Puppies and Pie
    Spoiler
    Show

    Evoker avatar by kpenguin. Evoker Pony by Dirtytabs. Grey Mouser, disciple of cupcakes by me. Any and all commiepuppies by BRC

  5. - Top - End - #5
    Dwarf in the Playground
     
    Kobold

    Join Date
    Oct 2007
    Gender
    Male

    Default Re: Hit Calculator

    actually, i use QBasic. i just added a clause that deleted one hit opportunity when the result was a natural one.
    I apologize for the quality of the above post.

  6. - Top - End - #6
    Firbolg in the Playground
     
    MCerberus's Avatar

    Join Date
    Oct 2007
    Location
    St. Louis
    Gender
    Male

    Default Re: Hit Calculator

    Hmmm that should be a 5% for the second one (natural 20)
    Ask me about our low price vacation plans in the Elemental Plane of Puppies and Pie
    Spoiler
    Show

    Evoker avatar by kpenguin. Evoker Pony by Dirtytabs. Grey Mouser, disciple of cupcakes by me. Any and all commiepuppies by BRC

  7. - Top - End - #7
    Dwarf in the Playground
     
    Kobold

    Join Date
    Oct 2007
    Gender
    Male

    Default Re: Hit Calculator

    well yes. I'm trying to figure that out as well.

    EDIT: it will work if you round up. just want to put that in.

    EDIT#2: they are stabilized as well. just did a 10 million test, same ratios.
    Last edited by WrstDmEvr; 2007-11-10 at 10:10 PM.
    I apologize for the quality of the above post.

  8. - Top - End - #8

    Default Re: Hit Calculator

    ...Wow, what is the point of this?

    It takes grade school math to figure out hit percentages, and it definitely doesn't take a million trials to determine it. On top of that, we have to actually submit data to a person to get back belated results. And as if that weren't bad enough, you even warned that errors can be expected.

    So... this uses an overtly overcomplicated algorithm (as a programmer, I can tell you that that's seen as a very *bad* thing for a programmer to do) to accomplish an overtly simplistic problem (you don't need a calculator for grade school math with small numbers, and even if you did you could use the world's cheapest pocket calculator) and... it has errors.

    Also, I've been an amateur programmer since I was ten, and I've never created a program that did grade school math that made an ERROR arriving at the answer of a problem that required grade school math. Seriously. That's really, really horrible. If you can't make a program do grade school math (most programming languages will let you do that just by typing in the equation) then I don't even know how you get to call yourself a programmer, amateur or not. We're talking about a zero effort program that takes 30 seconds to write.
    Last edited by OneWinged4ngel; 2007-11-10 at 11:33 PM.

  9. - Top - End - #9
    Dwarf in the Playground
    Join Date
    Dec 2005
    Location
    England

    Default Re: Hit Calculator

    I'm afraid I have to agree.

    To get the percentage chance of a hit, simply take the total attack bonus from the AC and multiply the remaining number by five, minimum final result being 5 and maximum being 95.
    Save vs GM powered thunderbolt!

    Kattira, Anja Khemari and Elderguard Tyrius. Thanks to The Stoney One for Avvies!

  10. - Top - End - #10
    Firbolg in the Playground
     
    MCerberus's Avatar

    Join Date
    Oct 2007
    Location
    St. Louis
    Gender
    Male

    Default Re: Hit Calculator

    It's a DnD themed learning project. The first website someone made wasn't something that people would consider "professional" is it? My first C program only printed stuff towards screens. The point is to take that grade school math and make a computer do it so he knows how to make it happen, not to make a useful end program.
    Ask me about our low price vacation plans in the Elemental Plane of Puppies and Pie
    Spoiler
    Show

    Evoker avatar by kpenguin. Evoker Pony by Dirtytabs. Grey Mouser, disciple of cupcakes by me. Any and all commiepuppies by BRC

  11. - Top - End - #11

    Default Re: Hit Calculator

    Quote Originally Posted by MCerberus View Post
    It's a DnD themed learning project. The first website someone made wasn't something that people would consider "professional" is it? My first C program only printed stuff towards screens. The point is to take that grade school math and make a computer do it so he knows how to make it happen, not to make a useful end program.
    Then why waste OUR time by talking about it on GiantITP? Go on a forum that teaches people to use C! And don't PRESENT the post as if you're TRYING to offer a useful end program to the community (which was exactly what he did).

    If you are correct about motives, this doesn't belong in this forum. This is practically spam, and should promptly be reported to the moderators.
    Last edited by OneWinged4ngel; 2007-11-10 at 11:37 PM.

  12. - Top - End - #12
    Dwarf in the Playground
     
    Kobold

    Join Date
    Oct 2007
    Gender
    Male

    Default Re: Hit Calculator

    Quote Originally Posted by OneWinged4ngel View Post
    ...Wow, what is the point of this?

    It takes grade school math to figure out hit percentages, and it definitely doesn't take a million trials to determine it. On top of that, we have to actually submit data to a person to get back belated results. And as if that weren't bad enough, you even warned that errors can be expected.

    So... this uses an overtly overcomplicated algorithm (as a programmer, I can tell you that that's seen as a very *bad* thing for a programmer to do) to accomplish an overtly simplistic problem (you don't need a calculator for grade school math with small numbers, and even if you did you could use the world's cheapest pocket calculator) and... it has errors.

    Also, I've been an amateur programmer since I was ten, and I've never created a program that did grade school math that made an ERROR arriving at the answer of a problem that required grade school math. Seriously. That's really, really horrible. If you can't make a program do grade school math (most programming languages will let you do that just by typing in the equation) then I don't even know how you get to call yourself a programmer, amateur or not. We're talking about a zero effort program that takes 30 seconds to write.
    You're right about most of this.

    Yes, it uses grade school math
    Yes, it doesn't require a calculator to do this
    Yes, there might be errors.
    Yes, it probably is overcomplicated. I did say I was an amatuer.
    However,
    This calculator is more efficient faster.

    Lets say the average person can find the percentage of both attackers and the ratio of hitting in 5 seconds.

    It takes me around 3 seconds to type something in. Then 1/2 of a second for the answer to come up on a screen. It's faster for finding out the averages for a single person.

    I'm posting this here because some people want to do other things instead of figuring out percentages. If they want to do it themselves, good for them. I fail to see any problem with this.


    Also, nobody made you answer. You didn't have to "waste" your time on this if you didn't think it was good.

    If fact, you appear to keep on posting and "wasting" your own time on this.
    Last edited by WrstDmEvr; 2007-11-11 at 10:07 AM.
    I apologize for the quality of the above post.

  13. - Top - End - #13
    Titan in the Playground
     
    ElfRangerGuy

    Join Date
    Aug 2007
    Location
    Imagination Land
    Gender
    Male

    Default Re: Hit Calculator

    I think he was just saying that it was pointless. Anyone can look and see "If my attack bonus is +5 and his AC is 12, then I need to roll a 7 or higher to hit. On a d20 there are 14 numbers equal to or greater than 7 (7, 8, 9, and 10, plus 10 more is 14), so there is a 14 * 5% = 70% chance of hitting."

    Anyone who can't do this in their head should just stick to board games. And like OneWinged4ngel said, if this is about you learning how to do programming, this is not the right place for getting help or showing off.

    And your first post DID seem like it was offering a utility for people to use. I actually reread the post TWICE looking for the link to the program and was confused when I realized there wasn't one. If you wanted help testing your program, you should have said so more clearly, but again this is not the proper forum for such activities.

    Also, saving 1.5 seconds of time is pretty insignificant for some information that you'll never actually NEED for anything, ever.
    "Nothing you can't spell will ever work." - Will Rogers

    Watch me draw and swear at video games.

  14. - Top - End - #14
    Dwarf in the Playground
     
    Kobold

    Join Date
    Oct 2007
    Gender
    Male

    Default Re: Hit Calculator

    Point taken.

    This is pointless now, though. It's just going to degenerate into a discussion of if it is good/bad etc. I'll just close it.
    I apologize for the quality of the above post.

Posting Permissions

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