summaryrefslogtreecommitdiff
path: root/pile.c
diff options
context:
space:
mode:
Diffstat (limited to 'pile.c')
-rw-r--r--pile.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pile.c b/pile.c
index 793cc7c..fa9ba46 100644
--- a/pile.c
+++ b/pile.c
@@ -132,6 +132,14 @@ void SwapPile(Pile *a, Pile *b)
*b = t;
}
+void MovePile(Pile *from, Pile *to)
+{
+ while(from->no)
+ {
+ MoveTopCard(from, to);
+ }
+}
+
void FreePile(Pile *p)
{
if (p->card)