Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limits 5 connections #12

Open
andyoranned opened this issue Apr 26, 2024 · 1 comment
Open

Limits 5 connections #12

andyoranned opened this issue Apr 26, 2024 · 1 comment

Comments

@andyoranned
Copy link

This might be by design, but it would not allow me to make more than 5 connections. I had 5 transitions that looped to the same state. Then I tried to add another transition from that state to another, but I got a notification saying something about limiting 5 transitions for a state. It would be night to be able to group transitions that loop back onto the state so that they only show as 1 loop and didn't limit how many transitions I could have away from states. Oh, and this was for PDAs specifically. I'm not sure about the other types of automata.

I would also like to add that this was extremely helpful for my Intro to Computation class for making neat and orderly state diagrams. Thank you so much!!

@kdickerson
Copy link
Owner

Hmm.. the limit should be 10, as seen in the code here: https://github.com/kdickerson/automatonSimulator/blob/master/js/fsm_ui.js#L275 I don't get an error until I reach 10.

Glad you found it helpful.

I picked 10 as a max because it seemed like trying to cram in more than that would likely be too messy to be manageable. Especially on a PDA with the stack transitions included in the labels.

This tool is intended to be an educational resource for creating simple automata. So I usually reject requests to make it support greater complexity or flexibility of input because doing so necessarily makes it more complicated to use and less focused on the the direct educational goal. In particular, supporting only 1 symbol per transition makes debugging substantially easier, keeps the UI simpler, and is easier to implement and maintain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants