Foxster
New member
- Joined
- Nov 3, 2020
- Messages
- 4
- Programming Experience
- 3-5
I made a simple BlackJack game, text only, betting is done IRL, no doubling, splitting or stuff like that. It's working nicely and i'm kinda proud, but there's one function that I don't know how to implement.
In BlackJack, the aces are worth 11, unless you would get bust, then they're worth only 1. I didn't think of this in the beginning, and now I don't know how to implement it without having to remake the whole thing.
Does anyone have an idea on how to solve this? Feel free to play around with the code.
Disclaimer: The code might be a bit messy and long, and my questionable commentary doesn't make it better. Please read at your own risk.
In BlackJack, the aces are worth 11, unless you would get bust, then they're worth only 1. I didn't think of this in the beginning, and now I don't know how to implement it without having to remake the whole thing.
Does anyone have an idea on how to solve this? Feel free to play around with the code.
Disclaimer: The code might be a bit messy and long, and my questionable commentary doesn't make it better. Please read at your own risk.
Attachments
Last edited: