I've put a casino in one of the castle towns in my game. I've read up on how to 'simulate' a random number generator for dice games but I'm not quite confident I can pull it off.
So, lets take something like blackjack. How would I go about programming it? I can do some cool things with variables and know how they interact. But I still have trouble knowing where to begin programming something like that.
If someone could post some example code of how you would get started on something like that, I'm confident I could take it from there.
Thanks in advance if anyone decides to go through the trouble.
So, lets take something like blackjack. How would I go about programming it? I can do some cool things with variables and know how they interact. But I still have trouble knowing where to begin programming something like that.
If someone could post some example code of how you would get started on something like that, I'm confident I could take it from there.
Thanks in advance if anyone decides to go through the trouble.


In my system, I'm adding one more catch - the game does not immediately end if either player gets a blackjack. This could be done, but it would make things more complicated and I want to give you a relatively basic setup.
Comment