Computer Science Canada

black jack help

Author:  canusa [ Tue Oct 12, 2004 6:42 pm ]
Post subject:  black jack help

heys guys i really need help to finish this any help would be very appreciated

Author:  Genesis [ Tue Oct 12, 2004 7:07 pm ]
Post subject: 

Do you have a specific problem? No one here is going to do your work for you.

In the code you posted all you can do is click radio buttons and it displays colored circles. (Or am I missing something?)

Author:  wtd [ Tue Oct 12, 2004 7:22 pm ]
Post subject: 

You have lengthy if...elsif...else statements. You'd be better off replacing them with a case structure. Not quite sure how such works in Turing, but an example in Ada95 (which often looks similar):

code:
case playerdeck(playerdeckcard) is
   when 1 => Pic.ScreenLoad ("clubsace.bmp", 230, 0, picCopy);
   when 2 => Pic.ScreenLoad ("clubs2.bmp", 230, 0, picCopy);
   -- ...
end case;

Author:  canusa [ Thu Oct 14, 2004 4:59 pm ]
Post subject: 

i got rid of those radio buttons no clue y i put them in, thanks for telling me about the case stuff its appreciated, im working on the betting system right now, but the one thing that i cant get to work which i have down already is not all the cards show up


: