ok maybe the luck is avg ngl its jus this seed is goated
This commit is contained in:
@@ -69,17 +69,17 @@ class UnsophisticatedPool(TypedDict):
|
||||
class Context(TypedDict):
|
||||
pool: UnsophisticatedPool
|
||||
initial_rates: SophisticatedRates
|
||||
type: Literal["banner", "select"]
|
||||
type: Literal["banner", "normal"]
|
||||
"very convoluted logic"
|
||||
|
||||
|
||||
@traceable(name="initializer")
|
||||
def init(state: Input, runtime: Runtime[Context]):
|
||||
if (
|
||||
runtime.context["type"] == "select"
|
||||
runtime.context["type"] == "normal"
|
||||
and runtime.context["initial_rates"]["r_240"] != 0
|
||||
):
|
||||
raise ValueError("set r_240 to 0 if select and put them also in the n_80 pool")
|
||||
raise ValueError("set r_240 to 0 if normal and put them also in the n_80 pool")
|
||||
c = state.get("counter", {})
|
||||
return {
|
||||
"countdown": state.get("countdown", 0), # minus 1 logic!
|
||||
@@ -100,8 +100,8 @@ def rate_booster(state: State) -> Literal["0", "65"]:
|
||||
def router(state: State, runtime: Runtime[Context]) -> Literal["240", "80", "10", "1"]:
|
||||
"super match"
|
||||
sc, c = state["simple_counter"], state["counter"]
|
||||
if (runtime.context["type"] == "banner" and sc == 120) or (
|
||||
sc > 0 and sc % 240 == 0
|
||||
if runtime.context["type"] == "banner" and (
|
||||
sc == 120 or (sc > 0 and sc % 240 == 0)
|
||||
):
|
||||
return "240"
|
||||
if c.get("c_80", 0) % 80 == 0:
|
||||
@@ -306,7 +306,7 @@ context: Context = {
|
||||
"Last Rite",
|
||||
"Pogranichnik",
|
||||
],
|
||||
"n_240": [ # select or banner / logic is hella flawed lowk ong
|
||||
"n_240": [ # normal or banner / logic is hella flawed lowk ong
|
||||
# "Rossi",
|
||||
# "Tangtang",
|
||||
"Zhuang Fangyi",
|
||||
@@ -377,7 +377,7 @@ def how_good_is_my_luck(
|
||||
for i in range(repeat)
|
||||
]
|
||||
|
||||
pprint([dict(sorted(Counter(i["category"] for i in x).items())) for x in r])
|
||||
pprint([dict(Counter(i["category"] for i in x)) for x in r])
|
||||
return r
|
||||
|
||||
|
||||
@@ -396,21 +396,19 @@ if __name__ == "__main__":
|
||||
(folder / "graph.mermaid").write_text(mm)
|
||||
|
||||
config: RunnableConfig = {"configurable": {"thread_id": "random ahh"}}
|
||||
# random.seed("6741") # tung tung tung
|
||||
random.seed("6741") # tung tung tung
|
||||
|
||||
r, _ = running_lite(
|
||||
app, build_input(39, until_5=1, until_6=51), config, display=True
|
||||
)
|
||||
how_good_is_my_luck(10, app, build_input(120)) # BULLSHIT
|
||||
# [
|
||||
# {"1": 97, "10": 21, "240": 1, "80": 1},
|
||||
# {"1": 102, "10": 15, "240": 2, "80": 1},
|
||||
# {"1": 96, "10": 20, "240": 2, "80": 2},
|
||||
# {"1": 101, "10": 15, "240": 4},
|
||||
# {"1": 98, "10": 19, "240": 3},
|
||||
# {"1": 101, "10": 15, "240": 3, "80": 1},
|
||||
# {"1": 99, "10": 19, "240": 2},
|
||||
# {"1": 103, "10": 13, "240": 3, "80": 1},
|
||||
# {"1": 98, "10": 19, "240": 1, "80": 2},
|
||||
# {"1": 101, "10": 14, "240": 3, "80": 2},
|
||||
# ]
|
||||
# [{'1': 97, '10': 21, '240': 1, '80': 1},
|
||||
# {'1': 102, '10': 15, '240': 2, '80': 1},
|
||||
# {'1': 96, '10': 20, '240': 2, '80': 2},
|
||||
# {'1': 101, '10': 15, '240': 4},
|
||||
# {'1': 98, '10': 19, '240': 3},
|
||||
# {'1': 101, '10': 15, '240': 3, '80': 1},
|
||||
# {'1': 99, '10': 19, '240': 2},
|
||||
# {'1': 103, '10': 13, '240': 3, '80': 1},
|
||||
# {'1': 98, '10': 19, '240': 1, '80': 2},
|
||||
# {'1': 101, '10': 14, '240': 3, '80': 2}]
|
||||
|
||||
Reference in New Issue
Block a user