diff --git a/code/ch09-01/player.ex b/code/ch09-01/player.ex index 39a259f..0f570e4 100644 --- a/code/ch09-01/player.ex +++ b/code/ch09-01/player.ex @@ -15,7 +15,7 @@ defmodule Player do send(dealer, {:take, to_send, self()}) play(to_keep) {:pick_up, cards, dealer} -> - new_hand = hand ++ cards + new_hand = Cards.shuffle(hand ++ cards) IO.puts("Player #{inspect(self)} has #{inspect(new_hand)}") send(dealer, {:got_cards, self()}) play(new_hand)