I'm writing a blackjack game just to try and brush some rust off. I'm not looking for any code, but more the theory/steps behind how to write a deal class.
I've got a functional deck generator, and I can shuffle my deck with no problem. Now I've turned my attention to dealing from this shuffled deck. At some point I will probably go back and re-write the fischer-yates shuffle algorithm instead of using Collections.shuffle(). Don't want to tackle that just now though. At some point I may try to add in bets/doubledowns/splits as well.
anyway... deal method in Deal class, my foggy thoughts so far.
scenario 1.
Deal two cards
Pass them into a dealer arraylist,
Deal two more cards
Pass them into a player arraylist.
send the various arraylists to player-specific methods.
Scenario 2.
Deal four cards
Split the cards in two.
send the cards to different methods for each player.
scenario 3.
instantiate Deal twice. (once for player, once for Dealer)
pass cards to various methods.
Am I overlooking something? I'm not worried about hitting or staying at this point. Just a successful deal.