Results 1 to 8 of 8

Thread: kc: Even $ RoR calculator added to my mini-site

  1. #1
    kc
    Guest

    kc: Even $ RoR calculator added to my mini-site

    I found it interesting to research this "gambler's ruin" problem. Even money payout risk of ruin calculator for a fixed EV .

    kc

  2. #2
    Don Schlesinger
    Guest

    Don Schlesinger: Doesn't work for me at all

    > I found it interesting to research this
    > "gambler's ruin" problem. Even money
    > payout risk of ruin calculator for a fixed EV .

    I get crazy answers that don't seem to make any sense at all. Wonder if it's yet another Netscape/IE problem.

    Don

  3. #3
    Don Schlesinger
    Guest

    Don Schlesinger: Not IE

    > I get crazy answers that don't seem to make any sense
    > at all. Wonder if it's yet another Netscape/IE
    > problem.

    Nope. Tried IE. Same thing. Something is very wrong.

    Don

  4. #4
    kc
    Guest

    kc: Don't know why

    > Nope. Tried IE. Same thing. Something is very wrong.

    > Don

    Does it work for anyone else? It uses some minimal JavaScript for input validation. In IE for the JavaScript to work you would need to make sure Java permissions are enabled. However I think it should work anyway as long as the user makes valid entries.

    kc

  5. #5
    kc
    Guest

    kc: Re: Don't know why

    > Does it work for anyone else? It uses some minimal
    > JavaScript for input validation. In IE for the
    > JavaScript to work you would need to make sure Java
    > permissions are enabled. However I think it should
    > work anyway as long as the user makes valid entries.

    > kc

    I just ran my html through the html validator suggested by Magician and there seems to be problems. I'll see what I can do to fix them. It worked for me though in IE 6 even with the errors.

    kc

  6. #6
    kc
    Guest

    kc: Re: html

    > I just ran my html through the html validator
    > suggested by Magician and there seems to be problems.
    > I'll see what I can do to fix them. It worked for me
    > though in IE 6 even with the errors.

    > kc

    I pasted my html into a tutorial site instead of what they suggested and it worked. At this point in my html career I don't think I can do any better. I'm getting 4 errors. 3 of them complain about the use of the center tag. The other says that there is no attribute such as "language". I'm not sure these are actually errors. Here's the quote from the validator:

    "I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents."

    Here is the link again - link to calculator. Does the program work for anyone?

    Thanks
    kc

  7. #7
    Magician
    Guest

    Magician: Re: html

    > I pasted my html into a tutorial site instead of what
    > they suggested and it worked. At this point in my html
    > career I don't think I can do any better. I'm getting
    > 4 errors. 3 of them complain about the use of the
    > center tag. The other says that there is no attribute
    > such as "language". I'm not sure these are
    > actually errors. Here's the quote from the validator:

    > "I was not able to extract a character encoding
    > labeling from any of the valid sources for such
    > information. Without encoding information it is
    > impossible to reliably validate the document. I'm
    > falling back to the "UTF-8" encoding and
    > will attempt to perform the validation, but this is
    > likely to fail for all non-trivial documents."

    > Here is the link again - link to calculator. Does
    > the program work for anyone?

    > Thanks
    > kc

    Hi Keith,

    I'm on holiday at the moment and not reading the forums too often. Your program seemed to work for me in IE (I don't have any other browser installed on this computer to try). The HTML errors you mention should not prevent it from working.

    The way I read it, Don seemed to be saying that it worked but gave an unexpected answer. Maybe you want to check what the input values were, what the answer was and what answer Don was expecting.

    My test scenario was a player with a 20 unit bank trying to win 2 more units against a house edge of 1%. I selected "Neg", entered "01" as the EV, "20" for the bank and "22" for the goal. The RoR was 0.110154. Sounds reasonable to me.

  8. #8
    kc
    Guest

    kc: Re: right format

    > Hi Keith,

    > I'm on holiday at the moment and not reading the
    > forums too often. Your program seemed to work for me
    > in IE (I don't have any other browser installed on
    > this computer to try). The HTML errors you mention
    > should not prevent it from working.

    > The way I read it, Don seemed to be saying that it
    > worked but gave an unexpected answer. Maybe you want
    > to check what the input values were, what the answer
    > was and what answer Don was expecting.

    > My test scenario was a player with a 20 unit bank
    > trying to win 2 more units against a house edge of 1%.
    > I selected "Neg", entered "01" as
    > the EV, "20" for the bank and "22"
    > for the goal. The RoR was 0.110154. Sounds reasonable
    > to me.

    Hi Mag,

    Thanks for the response. Your input was exactly in the format that is acceptable to the program. If a user's browser can use my JavaScript it is impossible to enter unusable values; otherwise the user could conceivably enter characters that would cause it to malfunction, (such as a decimal in the EV field.) In that case if the user is careful and follows the example with the following limitations, the program should work:
     
    EV: pos or neg 0 to .9999 (don't input decimal)
    Bank: 0 to 999999999
    Goal: 0 to 999999999


    For some reason when I used an EV range of 0 to .999999, the program did give strange figures, although when I used a version independent of a browser it worked OK. Therefore, rather trying to figure out why, I just limited the EV range to 0 to .9999.

    kc

Bookmarks

Posting Permissions

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

About Blackjack: The Forum

BJTF is an advantage player site based on the principles of comity. That is, civil and considerate behavior for the mutual benefit of all involved. The goal of advantage play is the legal extraction of funds from gaming establishments by gaining a mathematic advantage and developing the skills required to use that advantage. To maximize our success, it is important to understand that we are all on the same side. Personal conflicts simply get in the way of our goals.