so i wanted to make an automat simulator.
as the input to the init of the automat class i need some kind of description.
rn im using this way to describe it:
automat = (
((1,), (5,), "-0", True),
((0,), (2,), "+0", True),
((3,), (1,), "-1", False),
((2,), (4,), "+1", False),
((5,), (3,), "-2", False),
((4,), (0,), "+2", False)
)
(this is parsed into a way the code can manage better)
what this means (so an alternative way can be made if thats simpler)
the rows are nodes
the last 2 are the name of the node and if it is accepting or not
the cols are the options of the automat
points can be either None or a list of indexes showing that on node,input which nodes to go to
the shape can have any amount of nodes/inputs so how would i annotate this?