caleb531 / automata

A Python library for simulating finite automata, pushdown automata, and Turing machines
https://caleb531.github.io/automata/
MIT License
349 stars 64 forks source link

Transition table example #149

Closed eliotwrobson closed 1 year ago

eliotwrobson commented 1 year ago

Add an example of creating a transition table, adapted from visual automata. This is part of the deprecation of visual automata in #124, as it was decided that we did not want to add pandas as a dependency for this library. Thus, the best course of action was to add snippets of code from that library that would have introduced dependencies as examples.

Should wait for #129 before merging, as this code uses a method introduced there.

@lewiuberg please let me know what you think if you get the chance.

coveralls commented 1 year ago

Coverage Status

Coverage: 100.0%. Remained the same when pulling 79ae31b462ddc6faaa278391f1babae06f39f1d4 on eliotwrobson:transition_table_example into ed5038c7e0b71ecac9c46b2438aeb911d7099988 on caleb531:develop.

caleb531 commented 1 year ago

@eliotwrobson This looks great! But I'm gonna switch this PR to Draft mode since I don't want to accidentally merge it before #129. 😅

eliotwrobson commented 1 year ago

Now that #129 has been merged, the example code added here should work! Going to go ahead and merge.