{"id":20252364,"url":"https://github.com/filipefernandes007/turing-machine","last_synced_at":"2026-05-14T07:37:09.401Z","repository":{"id":81434362,"uuid":"97654675","full_name":"filipefernandes007/turing-machine","owner":"filipefernandes007","description":"Turing Machine Javascript Implementation","archived":false,"fork":false,"pushed_at":"2017-07-19T11:27:44.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-02T17:37:00.216Z","etag":null,"topics":["turing-machine","turing-machine-simulator"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/filipefernandes007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-19T00:12:57.000Z","updated_at":"2021-09-19T17:54:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe5f454c-c40b-4067-9f96-df1a53d269b2","html_url":"https://github.com/filipefernandes007/turing-machine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/filipefernandes007/turing-machine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipefernandes007%2Fturing-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipefernandes007%2Fturing-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipefernandes007%2Fturing-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipefernandes007%2Fturing-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filipefernandes007","download_url":"https://codeload.github.com/filipefernandes007/turing-machine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipefernandes007%2Fturing-machine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33015694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["turing-machine","turing-machine-simulator"],"created_at":"2024-11-14T10:16:23.767Z","updated_at":"2026-05-14T07:37:09.384Z","avatar_url":"https://github.com/filipefernandes007.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Turing Machine\n##### Turing Machine Javascript Implementation\nThis implementation is based on wikipedia material: https://en.wikipedia.org/wiki/Turing_machine\n\nClone the repository and open index.html:\n```sh\n$ git clone https://github.com/filipefernandes007/turing-machine.git\n$ cd turing-machine\n$ open index.html\n```\nTo use the javascript code in your own projects, all you have to do is\ninitiate turingMachine object and run it: \n```javascript\nturingMachine.init(); \nrunner.run();\n```\nLook at the code - lib/turingmachine.js -, and you will find methods to add your own decision table (table state symbol):\n\n- add an entry to the state/symbol table: ```turingMachine.table.addState(0, 'A', 1, 'R', 'B');```\n\nThe signature of this method is: \n\u003e addState(tapeSymbol, currentState, writeSymbol, moveTape, nextState)\n\n- define the states like this: ```turingMachine.M.Q = ['A','B','C']; ```\n- define the tape: ``` turingMachine.tape = [0,1,0,1,0,1]; ```\n- put the header in a start position: ``` turingMachine.head = 0; // position 0 of the tape ```\n- define the initial state register of the Turing machine: ``` turingMachine.stateRegister = turingMachine.M.q0; ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipefernandes007%2Fturing-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilipefernandes007%2Fturing-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipefernandes007%2Fturing-machine/lists"}