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