I deow this flowchart for the next DnD session (we have a boss battle).
Can I make a finite-state machine out of this? I will try
I deow this flowchart for the next DnD session (we have a boss battle).
Can I make a finite-state machine out of this? I will try
An article I wrote previously on building software using finite state machines
https://www.lloydatkinson.net/posts/2022/modelling-workflows-with-finite-state-machines-in-dotnet/
Does anyone has an opinion on #KStatemachine vs #FlowRedux? In the past we used #FlowRedux for #KotlinMultiPlatform. I actually can't remember, why we did not used KStatemachine. There was a reason. Anyway. Would love to test the situation of #FiniteStateMachine together with maybe #Decompose and #Jetbrains #ComposeMultiplatform.
Especially regarding network requests, need for triggering login again and coming back where you were, some side running services and states in parallel like bluetooth
#python3
#goto
#automaton
#FiniteStateMachine
#HigherOrderFunction
#Zelah
def sieve(v):return v%2==1
gen=range(0,8)
def yesTest(sieve,val,yes,no):
if sieve(val):return yes
else:return no
def yes(val):yield val
def no(val):
if False:yield val
def keep(sieve,gen):
global yesTest,yes,noTest,no
goto,yesTest,yes,noTest,no=(yesTest,yes,yesTest,no),0,1,2,3
p=yesTest
for val in gen:
p=goto[p](sieve,val,yes,no)
for i in goto[p](val):
yield i
p-=1
for i in keep(sieve,gen):print(i)