mirror of
https://forge.murkfall.net/bluesaxman/deckard-and-company.git
synced 2026-03-13 00:44:20 -06:00
Added moveCard function internals
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user