{"id":24676182,"url":"https://github.com/tentaclepurple/42_ft_turing","last_synced_at":"2026-05-06T15:45:00.250Z","repository":{"id":264550665,"uuid":"892763097","full_name":"tentaclepurple/42_ft_turing","owner":"tentaclepurple","description":"Implementation of the famous mathematician computational model in Scala","archived":false,"fork":false,"pushed_at":"2025-01-26T01:25:36.000Z","size":9728,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T02:34:06.363Z","etag":null,"topics":["algorithms","computer-science","mathematics","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/tentaclepurple.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":"2024-11-22T18:21:50.000Z","updated_at":"2025-01-26T01:25:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8edc1cd-eab1-4220-9783-814f8ca05cf2","html_url":"https://github.com/tentaclepurple/42_ft_turing","commit_stats":null,"previous_names":["tentaclepurple/42_ft_turing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tentaclepurple%2F42_ft_turing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tentaclepurple%2F42_ft_turing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tentaclepurple%2F42_ft_turing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tentaclepurple%2F42_ft_turing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tentaclepurple","download_url":"https://codeload.github.com/tentaclepurple/42_ft_turing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244831247,"owners_count":20517660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["algorithms","computer-science","mathematics","scala"],"created_at":"2025-01-26T12:14:16.056Z","updated_at":"2026-05-06T15:45:00.200Z","avatar_url":"https://github.com/tentaclepurple.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ft_turing 🤖\n\nA functional implementation of a Turing Machine simulator in Scala, including a Universal Turing Machine (UTM)!\n\n## 🌐 Try it Online! \n\n**[Live Demo: Turing Machine Simulator](https://turingmachine.streamlit.app/)** *(Ctrl+click to open in new tab)*\n\n## Overview\n\nThis project implements a single-headed, single-tape Turing machine capable of:\n- Processing machine descriptions from JSON files\n- Simulating standard Turing machines\n- Operating as a Universal Turing Machine\n- Computing time complexity (bonus feature)\n\n## Features\n\n### Core Functionality\n- 🎯 Single-headed, single-tape Turing machine implementation\n- 📝 JSON-based machine configuration\n- 🔄 Step-by-step visualization of the machine's execution\n- ⚡ Adjustable execution speed (up to 10x)\n- 🛑 Error detection and handling for invalid inputs or configurations\n\n### Included Machines\n1. **Unary Addition**: Computes the sum of two unary numbers\n2. **Palindrome Checker**: Determines if input is a palindrome\n3. **0ⁿ1ⁿ Language**: Validates if input matches format 0ⁿ1ⁿ\n4. **02ⁿ Language**: Validates if input matches format 02ⁿ\n5. **Universal Turing Machine**: Simulates the unary addition machine\n\n### Bonus Feature\n- Time complexity analysis for executed algorithms\n- Visual representation of computational steps\n- Complexity classification (O(1), O(n), O(n log n), O(n²), O(n³))\n\n## Web Interface\n\nThe web interface (built with Streamlit) provides:\n- Interactive machine selection\n- Real-time tape visualization\n- Speed control\n- Dark mode UI\n- Responsive design\n\n## Technical Details\n\n### Built With\n- Scala 3\n- Functional programming principles\n- Streamlit (web interface)\n- Play JSON for configuration parsing\n\n### Architecture\n- Pure functional implementation\n- Immutable data structures\n- Pattern matching for state transitions\n- Type-safe representation of machine configurations\n\n## Getting Started\n\n### Prerequisites\n- Scala 3.x\n- sbt\n\n# Run with SBT\nsbt run \"machines/unary_add.json\" \"1+1=\"\n\n## Contact\n\nFor any questions or feedback about the project, feel free to reach out!\n\n## Acknowledgments\n\n- Alan Turing, for his groundbreaking work in computer science\n- 42 School, for the challenging project subject\n- The Scala community for excellent tooling and documentation\n\n---\nHappy computing! 🧮✨\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftentaclepurple%2F42_ft_turing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftentaclepurple%2F42_ft_turing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftentaclepurple%2F42_ft_turing/lists"}