about summary refs log tree commit diff
path: root/sol.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-26 18:15:31 -0400
committerJune McEnroe <june@causal.agency>2019-03-26 18:15:31 -0400
commit77d344c1ab4e274ba099d66b8bf5eb9db7e5e45f (patch)
treec561c1ed60677771d45582ce2b878f0e4ad09786 /sol.c
parentImplement loadPE (diff)
downloadcards-77d344c1ab4e274ba099d66b8bf5eb9db7e5e45f.tar.gz
cards-77d344c1ab4e274ba099d66b8bf5eb9db7e5e45f.zip
Remove stackDeck
Other games will probably want to do it differently.
Diffstat (limited to 'sol.c')
-rw-r--r--sol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sol.c b/sol.c
index b4a323f..4da4933 100644
--- a/sol.c
+++ b/sol.c
@@ -82,7 +82,9 @@ static void gameDeal(void) {
 	for (uint i = 0; i < StacksLen; ++i) {
 		stackClear(&stacks[i]);
 	}
-	stackDeck(&stacks[Stock]);
+	for (Card i = 1; i <= 52; ++i) {
+		stackPush(&stacks[Stock], -i);
+	}
 	stackShuffle(&stacks[Stock]);
 	for (uint i = Tableau1; i <= Tableau7; ++i) {
 		stackMoveTo(&stacks[i], &stacks[Stock], i - Tableau1);