From 6b088e45eb22ea18336cda4fdece3d846230f60e Mon Sep 17 00:00:00 2001 From: geemili Date: Fri, 8 Mar 2024 14:10:40 -0700 Subject: [PATCH] apply same rules while moving right from base piles --- solitaire.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/solitaire.lua b/solitaire.lua index 519ecfb..5b69ae3 100644 --- a/solitaire.lua +++ b/solitaire.lua @@ -215,6 +215,11 @@ function update() end if si>=3 and si<7 and c_right then c_hover[1]=7 + if hand then + c_hover[2]=#stacks[c_hover[1]] + else + c_hover[2]=find_top_of_stack(stacks[c_hover[1]], #stacks[c_hover[1]]) + end end if si>7 and c_left then c_hover[1]=si-1