Save Borb Bay from disaster! Just one shot, and you'll be hooked on this arcade-puzzler. Use the cannon to fire Borbs to match three or more in order to remove them from the board. Be careful where. Wenn der Spieler eine Hand mit Pik Bube oder Kreuz Bube mit einem Pik Ass hatte, erhielt er eine Auszahlung von 10:1. Uns somit entstand der Name Blackjack, welcher bis heute bekannt ist. Black Jack online spielen ist einfach. Die Regeln sind leicht erlernbar und man muss sich mit keiner schwierigen Strategie auseinandersetzen. Hey Guys, i am doing this school project, where i have to code Blackjack in Processing. Everything works except for the bank drawing. I have two buttons to draw cards, the first one works perfectly, every click i get a card and a value. But the second button calls a loop, which is almost identic with the first button, which doesn't work as.
Blackjack Bube Wert
Bube Blackjack Poker
Answers
Save Borb Bay from disaster! Just one shot, and you'll be hooked on this arcade-puzzler. Use the cannon to fire Borbs to match three or more in order to remove them from the board. Be careful where. Wenn der Spieler eine Hand mit Pik Bube oder Kreuz Bube mit einem Pik Ass hatte, erhielt er eine Auszahlung von 10:1. Uns somit entstand der Name Blackjack, welcher bis heute bekannt ist. Black Jack online spielen ist einfach. Die Regeln sind leicht erlernbar und man muss sich mit keiner schwierigen Strategie auseinandersetzen. Hey Guys, i am doing this school project, where i have to code Blackjack in Processing. Everything works except for the bank drawing. I have two buttons to draw cards, the first one works perfectly, every click i get a card and a value. But the second button calls a loop, which is almost identic with the first button, which doesn't work as.
Blackjack Bube Wert
Bube Blackjack Poker
Answers
Bube Blackjack Game
the combination of partial code, terrible indenting and german comments probably means you won't get any answers to this...
but, from the description i think the problem is that draw() only shows a result when it finishes. so if you draw 5 things on top of each other in a single draw loop then you'll only see the last one.
Generic remarks:
- I question the usefulness of lines like:
{YouWin = 1 ;
if(YouWin 1 )or
{YouLose = 0;
if (YouLose0){The test after the assignment is totally useless...
In general, avoid the usage of delay(). In the case of
delay(1200);
the sketch is frozen for 1.2 second, which seems long for the user...There is duplicate code in your two branches, you should move it to a method.
I also invite you to read the Technical FAQ. The third article can be relevant. Basically: don't use a loop with delay(), use millis() with some logic.
What i tried to code is a loop which does the exact same thing like the first button but all by itself. Do you have a solution for this? Deadline is 01.04. and I am a bit scared...
you wrote:
What i tried to code is a loop which does the exact same thing like the first button but all by itself.
what is it that the 1st button does?
how is that behaiour triggered?
the advices above are good
moreover your code is not complete and we don't have the images.
can you provide the current version with images as zip via dropbox?