From f9b0bb07c97392e0086a7a7fce52e255d4d2df5d Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 21 Dec 2018 13:17:12 +0000 Subject: Added thoughtful mode. --- csol.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'csol.c') diff --git a/csol.c b/csol.c index 1abfcc9..e417b39 100644 --- a/csol.c +++ b/csol.c @@ -48,12 +48,16 @@ int main(int argc, char *argv[]) while(!quit) { + int row = 3; + erase(); Centre(1, "CURSES solitaire"); - Centre(3, "1 .. Klondike (draw three)"); - Centre(4, "2 .. Klondike (draw one)"); - Centre(5, "Q .. Quit"); + Centre(row++, "1 ............. Klondike (draw three)"); + Centre(row++, "2 ............... Klondike (draw one)"); + Centre(row++, "3 .. Thoughtful Klondike (draw three)"); + Centre(row++, "4 .... Thoughtful Klondike (draw one)"); + Centre(row++, "Q .............................. Quit"); key = getch(); @@ -61,11 +65,19 @@ int main(int argc, char *argv[]) { case '1': erase(); - Klondike(3); + Klondike(3, FALSE); break; case '2': erase(); - Klondike(1); + Klondike(1, FALSE); + break; + case '3': + erase(); + Klondike(3, TRUE); + break; + case '4': + erase(); + Klondike(1, TRUE); break; case 'q': case 'Q': -- cgit v1.2.3