From d31e36abfc85a07ce53a931b0cff6fa54d2d4f54 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 30 Jan 2023 17:44:46 +0000 Subject: Changed show so that it moves the face up cards one place down. --- klondike.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'klondike.c') diff --git a/klondike.c b/klondike.c index b899eb0..dfb893e 100644 --- a/klondike.c +++ b/klondike.c @@ -516,6 +516,16 @@ int Klondike(int draw, int thoughtful) if (show) { + erase(); + + DrawCard(0, 0, TRUE, TopOfPile(&pile)); + DrawCard(0, 4, FALSE, TopOfPile(&turned)); + + DrawCard(0, 10, FALSE, TopOfPile(&hearts)); + DrawCard(0, 15, FALSE, TopOfPile(&diamonds)); + DrawCard(0, 20, FALSE, TopOfPile(&spades)); + DrawCard(0, 25, FALSE, TopOfPile(&clubs)); + for(f = 0; f < 7; f++) { for(n = 0; n < column_down[f].no; n++) @@ -525,7 +535,7 @@ int Klondike(int draw, int thoughtful) for(n = 0; n < column_up[f].no; n++) { - DrawCard(2 + column_down[f].no + n, 1 + f * 5, + DrawCard(2 + column_down[f].no + n + 1, 1 + f * 5, FALSE, column_up[f].card[n]); } } -- cgit v1.2.3