Jump to content
  • entries
    4,968
  • comments
    2,721
  • views
    1,810,932

Casino Fun Pak


atari2600land

394 views

I played a little bit of Casino Fun Pak for the Sega Game Gear to get an understanding of how I should program my Blackjack game. I learned that the house's cards shows one, so I made mine show a card. The other card actually remains undecided since it was easier to do it that way. Since it's not showing, if you were playing it and I didn't tell you, you wouldn't know it was undecided.

Another thing I noticed was if you hit with an ace and go over 21, the ace automatically becomes 1 instead of 11. I had quite the time figuring out how do have this happen in my game, but I think I did it. So I think I finished Blackjack. Except for the fancy background. Right now it looks a little dull with just black background and text. I figured out that the most cards a player can have is 12, not 9 like I previously thought, due to the ace changing to 1. This led to a few more lines of code and work for it. (1*4)+(2*4)+(3*3)=21, and one more if the player is dumb enough to hit on 21. The most the house can have is 10, though, since it automatically stays on 17 or more.

Who knew there would be so much MATH involved in a game like Blackjack? Math was never one of my strong suits (no pun intended). But I was right: simplifying the code and changing how I did it led me to get a finished Blackjack game. But there's another hard problem: What do I work on next? The only other casino game I know is Video Poker, but I doubt this will have it since it would be too difficult for me to do. All the ways you can win and stuff. I'd imagine a straight would come up with nightmarishly long code. Is "nightmarishly" even a word? If not, I'm making it one. I was up until 2am programming away. I didn't intend for it, though. Last time I checked the time it was a little after midnight. Next thing I know it's 2am!

  • Like 1

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...