GithubHelp home page GithubHelp logo

precup / turing-machine-sim Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 3.28 MB

A design/testing tool for Turing machines

License: MIT License

JavaScript 72.27% PHP 9.23% CSS 7.14% HTML 11.20% PLpgSQL 0.16%

turing-machine-sim's People

Contributors

maxwang7 avatar mwangonrisk avatar bakkot avatar

Stargazers

Jay Moon avatar Michael Precup avatar  avatar

Watchers

Michael Precup avatar  avatar Jay Moon avatar  avatar

Forkers

maxwang7

turing-machine-sim's Issues

underproduced server.js error

Kevin

I've at least once gotten an error "whileRunning is not a function" at server.js:40, though I can't seem to reproduce it

Better naming for testing interface

From Kevin:

I have no idea what the 'end' button does. It's possible these buttons conceptually map to "start" / "step" / "stop"; if so, those are the more usual names.

Submit button does not open modal in Safari

Error from console:

TypeError: undefined is not a function (evaluating 'names[i].endsWith ("@stanford.edu")')

I've tested Chrome, and submit functionality works fine. We should test Firefox as well.

Force Directed Layout fails

From Kevin:

"Force directed layout" gives "Uncaught TypeError: gTopMenu.forcedDirectedLayout is not a function"

Low priority. We could also take out this feature.

Check user inputs into sample run

Kevin:
If you enter a test string which uses characters which are not in the alphabet and then 'run' then 'step' over such a character, it silently fails with " Uncaught TypeError: Cannot read property '0' of undefined gDFASimulator.step @ dfa.js:7 gTape.step @ tape.js:71 gTestMenu.step @ test.js:75 "

Save and Load modals not appearing on click

I can use all of the buttons except save and load, which freeze the screen when I click. There are no console errors. My guess is that the modal appears somewhere off the screen.

Testing interface: Not clear when machine is done running

From Kevin:
There is no indication that the machine is not running (eg, if you enter a string, run, then change the string, it looks like it's ready to go [or has already processed some characters], but won't actually do anything until you hit "run"). I would expect hitting 'enter' after entering a string would reset the machine such that hitting 'step' causes it to step through that string from the beginning, starting at the start state.

Testing bar should highlight current character

From Kevin:

The testing bar at the bottom highlights the character it's going to process next. This is a bit pedantic, but I would expect a highlighted character to be one which is currently being processed (so maybe highlighting an edge? not that this is an important feature), not one which is about to be processed. I think it's a lot clearer to have the cursor being between characters rather than over a particular one.

Submitting doesn't work

Kevin:

Actually submitting leaves the button saying "Submitting..." seemingly forever; I can't tell if it actual submits or not (though the console shows an XMLHTTPResponse)

From my own testing: No error message appears in the console. Possibly server side error.

Crash running bulk tests

Enter nothing, only set initial state, st:

Uncaught TypeError: undefined is not a function
bulk.js:30 (anonymous function)
bulk.js:27 gSimulator.runTests
modal.js:29 gModalMenu.submit
tm.html?type=dfa&charset=yd&pset=0&problem=1&mock=1:237 onclick

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.