summaryrefslogtreecommitdiff
path: root/klondike.c
diff options
context:
space:
mode:
Diffstat (limited to 'klondike.c')
-rw-r--r--klondike.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/klondike.c b/klondike.c
index aac2c33..b71be07 100644
--- a/klondike.c
+++ b/klondike.c
@@ -164,7 +164,7 @@ static void KlondikeHelp(void)
while(getch() != ' ');
}
-void Klondike(int draw, int thoughtful)
+int Klondike(int draw, int thoughtful)
{
Deck deck;
Pile pile = {0};
@@ -510,6 +510,8 @@ void Klondike(int draw, int thoughtful)
FreePile(&column_down[f]);
FreePile(&column_up[f]);
}
+
+ return won;
}