You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fori=min, #tbldo-- iterate over longer combinations.
2024
-
forcomboinCryptid.unique_combinations(tbl, append(sub, tbl[i]), i+1) do
2025
-
yield(combo)
2026
-
end
2027
-
end
2028
-
end
2029
-
end)
2022
+
returnwrap(function()
2023
+
if#sub>0then
2024
+
yield(sub) -- yield short combination.
2025
+
end
2026
+
if#sub<#tblthen
2027
+
fori=min, #tbldo-- iterate over longer combinations.
2028
+
forcomboinCryptid.unique_combinations(tbl, append(sub, tbl[i]), i+1) do
2029
+
yield(combo)
2030
+
end
2031
+
end
2032
+
end
2033
+
end)
2030
2034
end
2031
2035
2032
2036
get_straight_ref=get_straight
@@ -2038,28 +2042,28 @@ function get_straight(hand, min_length, skip, wrap)
2038
2042
ifstones>0then
2039
2043
fori, vinpairs(hand) do
2040
2044
ifv.config.center.key~="m_stone" then
2041
-
cards[#cards+1] =v
2045
+
cards[#cards+1] =v
2042
2046
fori, vinpairs(Cryptid.next_ranks(v:get_id(), nil, stones)) do--this means its inaccurate in some situations like K S S S S but its fine there isnt a better way
0 commit comments