Added moveCard function internals

This commit is contained in:
bluesaxman 2020-09-04 09:04:42 -06:00
parent 1181c3a2e8
commit e003d06b23

View File

@ -132,7 +132,8 @@ sub getHands {
sub moveCard {
my ($originStackRef, $originIndex, $destStackRef, $destIndex) = @_;
# splice card out of one deck, and into the other.
my $card = splice(@$originStackRef,$originIndex,1);
splice(@$destStackRef,$destIndex,0,$card);
}
sub drawCard {