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):
|
class Context(TypedDict):
|
||||||
pool: UnsophisticatedPool
|
pool: UnsophisticatedPool
|
||||||
initial_rates: SophisticatedRates
|
initial_rates: SophisticatedRates
|
||||||
type: Literal["banner", "select"]
|
type: Literal["banner", "normal"]
|
||||||
"very convoluted logic"
|
"very convoluted logic"
|
||||||
|
|
||||||
|
|
||||||
@traceable(name="initializer")
|
@traceable(name="initializer")
|
||||||
def init(state: Input, runtime: Runtime[Context]):
|
def init(state: Input, runtime: Runtime[Context]):
|
||||||
if (
|
if (
|
||||||
runtime.context["type"] == "select"
|
runtime.context["type"] == "normal"
|
||||||
and runtime.context["initial_rates"]["r_240"] != 0
|
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", {})
|
c = state.get("counter", {})
|
||||||
return {
|
return {
|
||||||
"countdown": state.get("countdown", 0), # minus 1 logic!
|
"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"]:
|
def router(state: State, runtime: Runtime[Context]) -> Literal["240", "80", "10", "1"]:
|
||||||
"super match"
|
"super match"
|
||||||
sc, c = state["simple_counter"], state["counter"]
|
sc, c = state["simple_counter"], state["counter"]
|
||||||
if (runtime.context["type"] == "banner" and sc == 120) or (
|
if runtime.context["type"] == "banner" and (
|
||||||
sc > 0 and sc % 240 == 0
|
sc == 120 or (sc > 0 and sc % 240 == 0)
|
||||||
):
|
):
|
||||||
return "240"
|
return "240"
|
||||||
if c.get("c_80", 0) % 80 == 0:
|
if c.get("c_80", 0) % 80 == 0:
|
||||||
@@ -306,7 +306,7 @@ context: Context = {
|
|||||||
"Last Rite",
|
"Last Rite",
|
||||||
"Pogranichnik",
|
"Pogranichnik",
|
||||||
],
|
],
|
||||||
"n_240": [ # select or banner / logic is hella flawed lowk ong
|
"n_240": [ # normal or banner / logic is hella flawed lowk ong
|
||||||
# "Rossi",
|
# "Rossi",
|
||||||
# "Tangtang",
|
# "Tangtang",
|
||||||
"Zhuang Fangyi",
|
"Zhuang Fangyi",
|
||||||
@@ -377,7 +377,7 @@ def how_good_is_my_luck(
|
|||||||
for i in range(repeat)
|
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
|
return r
|
||||||
|
|
||||||
|
|
||||||
@@ -396,21 +396,19 @@ if __name__ == "__main__":
|
|||||||
(folder / "graph.mermaid").write_text(mm)
|
(folder / "graph.mermaid").write_text(mm)
|
||||||
|
|
||||||
config: RunnableConfig = {"configurable": {"thread_id": "random ahh"}}
|
config: RunnableConfig = {"configurable": {"thread_id": "random ahh"}}
|
||||||
# random.seed("6741") # tung tung tung
|
random.seed("6741") # tung tung tung
|
||||||
|
|
||||||
r, _ = running_lite(
|
r, _ = running_lite(
|
||||||
app, build_input(39, until_5=1, until_6=51), config, display=True
|
app, build_input(39, until_5=1, until_6=51), config, display=True
|
||||||
)
|
)
|
||||||
how_good_is_my_luck(10, app, build_input(120)) # BULLSHIT
|
how_good_is_my_luck(10, app, build_input(120)) # BULLSHIT
|
||||||
# [
|
# [{'1': 97, '10': 21, '240': 1, '80': 1},
|
||||||
# {"1": 97, "10": 21, "240": 1, "80": 1},
|
# {'1': 102, '10': 15, '240': 2, '80': 1},
|
||||||
# {"1": 102, "10": 15, "240": 2, "80": 1},
|
# {'1': 96, '10': 20, '240': 2, '80': 2},
|
||||||
# {"1": 96, "10": 20, "240": 2, "80": 2},
|
# {'1': 101, '10': 15, '240': 4},
|
||||||
# {"1": 101, "10": 15, "240": 4},
|
# {'1': 98, '10': 19, '240': 3},
|
||||||
# {"1": 98, "10": 19, "240": 3},
|
# {'1': 101, '10': 15, '240': 3, '80': 1},
|
||||||
# {"1": 101, "10": 15, "240": 3, "80": 1},
|
# {'1': 99, '10': 19, '240': 2},
|
||||||
# {"1": 99, "10": 19, "240": 2},
|
# {'1': 103, '10': 13, '240': 3, '80': 1},
|
||||||
# {"1": 103, "10": 13, "240": 3, "80": 1},
|
# {'1': 98, '10': 19, '240': 1, '80': 2},
|
||||||
# {"1": 98, "10": 19, "240": 1, "80": 2},
|
# {'1': 101, '10': 14, '240': 3, '80': 2}]
|
||||||
# {"1": 101, "10": 14, "240": 3, "80": 2},
|
|
||||||
# ]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user