From 51e6b293e98a7e444da6630206e420ed2becc19d Mon Sep 17 00:00:00 2001 From: geemili Date: Sun, 18 Feb 2024 16:29:59 -0700 Subject: [PATCH] make 1 player option work --- rummy.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rummy.lua b/rummy.lua index 7b5b304..49fc2af 100644 --- a/rummy.lua +++ b/rummy.lua @@ -145,6 +145,13 @@ function TIC() end function handler_main_menu(action) + if action=="start-1-player" then + return { redirect=handler_draw_card } + elseif action=="start-2-player" then + elseif action=="start-3-player" then + elseif action=="start-4-player" then + end + local player_count_cards={ Card:new(1, 1), Card:new(2, 2), @@ -170,7 +177,7 @@ function handler_main_menu(action) table.insert(elements, { visual=card, x=x, y=68, - action=card, + action="start-"..i.."-player", }) x=x+24+space_around end