Ignore the blurry image, here's a link to the image:
http://i.imgur.com/5hJuG7M.png
I am trying to make an interactive Blackjack game in Alice 3.
The top picture shows the code that is able to deal cards to the two players, however it cannot identify the value of each cards.
In the bottom picture, I try to fix this by putting each set of cards into different arrays, but can't find a way to put all the arrays into another array so I could just use that array to deal...
I also am having trouble understanding how the eventlisteners work. I added an event that states if H is pressed to run the procedure called "hitMe" which will deal a new card to the next thingMarker. However, the variables keep resetting every time H is pressed so the cards keep moving to the same thingMarker.
My questions:
Is there anyway to put an array of objects(Billboards) into an array of whole numbers?
How can I assign numerical values to objects?
Is there a way to assign global variables?