Calculate High/Low Winning Percentage
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm trying to build a simple odds calculator for a high/low game but my math is failing me.
Game Rules:
Aces are highest
1 Deck
Dealers card is shown, I have to guess if my card will be Higher or Lower.
This is what I was thinking for the odds calculation:
lowerCardChance = (((dealersCard - 2) * 4) - lowerCardsDiscarded) / (51 - totalCardsDiscarded) * 100
Deduct 2 from dealers card to start counting from the first card in the deck (2), multiply the remaining number of cards with 4 since there are 4 card colors.
From the new number deduct the number of cards that are lower than the dealer's card and have been already discarded from the deck.
Divide the remaining number of cards by the total number of cards in the deck without the total number of cards discarded.
sameCardChance = (3 - sameCardsDiscarded) / (51) * 100
higherCardChance = (((15 - dealersCard) * 4) - higherCardsDiscarded) / (51 - totalCardsDiscarded) * 100
In some cases, the result is over 100%, generally when the card is lowest or highest. So obviously the math is wrong ... just not obvious to me ...
game-theory
add a comment |Â
up vote
0
down vote
favorite
I'm trying to build a simple odds calculator for a high/low game but my math is failing me.
Game Rules:
Aces are highest
1 Deck
Dealers card is shown, I have to guess if my card will be Higher or Lower.
This is what I was thinking for the odds calculation:
lowerCardChance = (((dealersCard - 2) * 4) - lowerCardsDiscarded) / (51 - totalCardsDiscarded) * 100
Deduct 2 from dealers card to start counting from the first card in the deck (2), multiply the remaining number of cards with 4 since there are 4 card colors.
From the new number deduct the number of cards that are lower than the dealer's card and have been already discarded from the deck.
Divide the remaining number of cards by the total number of cards in the deck without the total number of cards discarded.
sameCardChance = (3 - sameCardsDiscarded) / (51) * 100
higherCardChance = (((15 - dealersCard) * 4) - higherCardsDiscarded) / (51 - totalCardsDiscarded) * 100
In some cases, the result is over 100%, generally when the card is lowest or highest. So obviously the math is wrong ... just not obvious to me ...
game-theory
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to build a simple odds calculator for a high/low game but my math is failing me.
Game Rules:
Aces are highest
1 Deck
Dealers card is shown, I have to guess if my card will be Higher or Lower.
This is what I was thinking for the odds calculation:
lowerCardChance = (((dealersCard - 2) * 4) - lowerCardsDiscarded) / (51 - totalCardsDiscarded) * 100
Deduct 2 from dealers card to start counting from the first card in the deck (2), multiply the remaining number of cards with 4 since there are 4 card colors.
From the new number deduct the number of cards that are lower than the dealer's card and have been already discarded from the deck.
Divide the remaining number of cards by the total number of cards in the deck without the total number of cards discarded.
sameCardChance = (3 - sameCardsDiscarded) / (51) * 100
higherCardChance = (((15 - dealersCard) * 4) - higherCardsDiscarded) / (51 - totalCardsDiscarded) * 100
In some cases, the result is over 100%, generally when the card is lowest or highest. So obviously the math is wrong ... just not obvious to me ...
game-theory
I'm trying to build a simple odds calculator for a high/low game but my math is failing me.
Game Rules:
Aces are highest
1 Deck
Dealers card is shown, I have to guess if my card will be Higher or Lower.
This is what I was thinking for the odds calculation:
lowerCardChance = (((dealersCard - 2) * 4) - lowerCardsDiscarded) / (51 - totalCardsDiscarded) * 100
Deduct 2 from dealers card to start counting from the first card in the deck (2), multiply the remaining number of cards with 4 since there are 4 card colors.
From the new number deduct the number of cards that are lower than the dealer's card and have been already discarded from the deck.
Divide the remaining number of cards by the total number of cards in the deck without the total number of cards discarded.
sameCardChance = (3 - sameCardsDiscarded) / (51) * 100
higherCardChance = (((15 - dealersCard) * 4) - higherCardsDiscarded) / (51 - totalCardsDiscarded) * 100
In some cases, the result is over 100%, generally when the card is lowest or highest. So obviously the math is wrong ... just not obvious to me ...
game-theory
game-theory
asked Sep 8 at 9:13
Trax
1011
1011
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2909447%2fcalculate-high-low-winning-percentage%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password