This site requires JavaScript, please enable it in your browser!
Greenfoot back
matzaurus

matzaurus

University of Sussex, Ploiesti

matzaurus's scenarios

play Black-Jack

matzaurus's collections

This user has no collections

Recent Comments | Show All

matzaurus

2012/3/14

Yep! The ArrayList would be good. Now I got my head around it :) thanks!
matzaurus

2012/3/14

Well the deck doesn't have to remain constant considering a real game of blackjack is played with multiple decks which get shuffled, I might just add more stacks :) cause thats what I used to implement the deck and pick cards randomly from them so in that case you can get the same card in a draw :D. Won't putting them in an array result in a ton of iterations through it even in an ArrayList?. I'll put a bustCheck in the Hit button so it busts you if you go over 21 while hitting rather that when you stand and let the dealer finish drawing his cards.