Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Adding Problem

Adding Problem

Scheduled Pinned Locked Moved Visual Basic
game-devdata-structureshelp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cedrickdeorange
    wrote on last edited by
    #1

    I am doing a game of Blackjack. I have only one problem to figure out. I cannot get the dealers cards to add up if it is more than two cards. i am giving two cards to the dealer on the on the first deal. I can get the dealers total hear, but i can't get the totals if the dealer needs more than two cards. I am using arrays for the cards and card values plus piture boxes. I also have an array for the players and dealers last four cards. The players four extra cards i have on a click event. It is just the dealers totals i cannot work out.

    Regards Zeldacat

    K S C 3 Replies Last reply
    0
    • C Cedrickdeorange

      I am doing a game of Blackjack. I have only one problem to figure out. I cannot get the dealers cards to add up if it is more than two cards. i am giving two cards to the dealer on the on the first deal. I can get the dealers total hear, but i can't get the totals if the dealer needs more than two cards. I am using arrays for the cards and card values plus piture boxes. I also have an array for the players and dealers last four cards. The players four extra cards i have on a click event. It is just the dealers totals i cannot work out.

      Regards Zeldacat

      K Offline
      K Offline
      Kschuler
      wrote on last edited by
      #2

      You're going to have to give us more information about what is going wrong in your code. Are you getting an error? What code are you using right now?

      1 Reply Last reply
      0
      • C Cedrickdeorange

        I am doing a game of Blackjack. I have only one problem to figure out. I cannot get the dealers cards to add up if it is more than two cards. i am giving two cards to the dealer on the on the first deal. I can get the dealers total hear, but i can't get the totals if the dealer needs more than two cards. I am using arrays for the cards and card values plus piture boxes. I also have an array for the players and dealers last four cards. The players four extra cards i have on a click event. It is just the dealers totals i cannot work out.

        Regards Zeldacat

        S Offline
        S Offline
        svanwass
        wrote on last edited by
        #3

        Are you storing the value of the dealers cards in an array? If so, is it large enough to hold as many cards as he has? Some example code may help get you an answer.

        1 Reply Last reply
        0
        • C Cedrickdeorange

          I am doing a game of Blackjack. I have only one problem to figure out. I cannot get the dealers cards to add up if it is more than two cards. i am giving two cards to the dealer on the on the first deal. I can get the dealers total hear, but i can't get the totals if the dealer needs more than two cards. I am using arrays for the cards and card values plus piture boxes. I also have an array for the players and dealers last four cards. The players four extra cards i have on a click event. It is just the dealers totals i cannot work out.

          Regards Zeldacat

          C Offline
          C Offline
          Cedrickdeorange
          wrote on last edited by
          #4

          Thank you all. Sorry, I do have problem describing details about things. I have changed the arrays around a bit, so i can now do the total scores. Once again thank you.

          Regards Zeldacat

          L 1 Reply Last reply
          0
          • C Cedrickdeorange

            Thank you all. Sorry, I do have problem describing details about things. I have changed the arrays around a bit, so i can now do the total scores. Once again thank you.

            Regards Zeldacat

            L Offline
            L Offline
            leckey 0
            wrote on last edited by
            #5

            Just as an FYI rather than making a sub-post it's more helpful if you modify your message title with [SOLVED] behind it.:)

            http://craptasticnation.blogspot.com/[^]

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups