-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The players luck affects the outcome of a blackjack game. #3
Comments
From shadow: You may also not want to do that on every turn Else EndIf 1 in 5 chance with maxed luck, 1 in 50 chance with min luck |
I agree we should factor in the players luck attribute to the odds of winning a game. The technical details are a little off base though. The card that gets drawn from a deck is much more than simply a random number or an index in a list so just returning a random number wont do the trick. Lets recap the goal here. We want to increase the players chance of winning a game when their luck is high and decrease the chance of winning when their luck is low. To achieve this we should do it exactly the same way it would be done in real life. In real life you would decrease the odds of winning in favor of the house by stacking the deck with multiple decks of cards. Since the Here is a chart of the odds based on the amount of decks used in a game of black jack.
With that, we increase the amount of decks used the lower a players luck attribute is. When a game uses a single deck of 52 cards the player should have a luck of 10. So I propose a formula like this.
|
That's genius! And very realistic as well, I love it! But...how smoothly can you implement that? Of course, a simple way would be to run a set of comparisons against the player's Luck stat even before the cards are "shuffled" then add decks based on the stat. |
Very smoothly if I may toot my own horn. Off the top of my head I can expose like a |
Wasn't aware of that limit, ugh if this were C I'd say use a pointer in the last element of the array to point to the next array...but alas. In that case, multiple internal arrays would work (pretty sure I know what means). |
I do intend to do this, however this might be best saved for when we want to revisit the blackjack code for optimization and improvements. The source code for other games will incorporate the luck stat in some way |
During our private discussion we talked about making this simple. For each point of luck, grant a bonus to the amount of caps a game will payout. |
Leaving this open, one of those things we can do quickly, a simple check for the multiplier on the payout should suffice for blackjack |
The user ForsakenShell had some thoughts to add to the conversation that I found interesting.
Additional Testing
Thanks for adding to the conversation E. |
I have been discussing with Shadow from the Cascadia team about general ways to implement a Luck based effect on the "randomness" of dealing cards to the player. I.E. at higher luck levels you will get dealt better cards. I will copy over his suggestions, I am thinking that certain degrees of combinations of his suggestions might work best in order to achieve a more RPG feel to gambling.
The text was updated successfully, but these errors were encountered: