From 2b3c1c3ce6ec414c83cfee5e9dccb7e71f561a9d Mon Sep 17 00:00:00 2001 From: girst Date: Sun, 2 Dec 2018 18:51:41 +0100 Subject: [PATCH] don't check if stock empty can't reverse-look through the stack otherwise --- sol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sol.c b/sol.c index 3bcb2b8..a0613b4 100644 --- a/sol.c +++ b/sol.c @@ -348,7 +348,7 @@ int get_cmd (int* from, int* to, int* opt) { case '9': if (!f.t[8][0]) return CMD_INVAL; *from = TAB_9; break; case '0': if (!f.t[9][0]) return CMD_INVAL; *from = TAB_10;break; #elif defined KLONDIKE - case '9': if (f.w < 0) return CMD_INVAL; *from = WASTE; break; + case '9': *from = WASTE; break; case '0': *from = FOUNDATION; break; case '8': /* fallthrough */ #endif -- 2.39.3