{"id":19364341,"url":"https://github.com/davidfstr/tic-tac-idris","last_synced_at":"2026-03-05T14:31:54.063Z","repository":{"id":27266671,"uuid":"30739351","full_name":"davidfstr/tic-tac-idris","owner":"davidfstr","description":"Tic-tac-toe game written in Idris.","archived":false,"fork":false,"pushed_at":"2015-03-07T03:04:04.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T23:22:23.162Z","etag":null,"topics":["idris","tic-tac-toe"],"latest_commit_sha":null,"homepage":null,"language":"Idris","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/davidfstr.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}},"created_at":"2015-02-13T03:53:00.000Z","updated_at":"2017-12-16T21:47:10.000Z","dependencies_parsed_at":"2022-09-01T19:41:05.927Z","dependency_job_id":null,"html_url":"https://github.com/davidfstr/tic-tac-idris","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidfstr/tic-tac-idris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfstr%2Ftic-tac-idris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfstr%2Ftic-tac-idris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfstr%2Ftic-tac-idris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfstr%2Ftic-tac-idris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidfstr","download_url":"https://codeload.github.com/davidfstr/tic-tac-idris/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfstr%2Ftic-tac-idris/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30130388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["idris","tic-tac-toe"],"created_at":"2024-11-10T07:37:10.362Z","updated_at":"2026-03-05T14:31:54.025Z","avatar_url":"https://github.com/davidfstr.png","language":"Idris","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tic-tac-idris\n\nThis is a tic-tac-toe game written in Idris.\n\nI wrote it as an exercise for learning basic functionality in Idris.\n\nThis program does not make much use of language facilities unique to\ndependently-typed programming languages or Idris such as proof terms.\nAs such this tic-tac-toe implementation could be translated quite\nstraightforwardly to another functional programming language such\nas Haskell.\n\nFor a program that makes heavier use of facilities unique to dependently-typed\nlanguages, see my [proven-correct implementation of insertion sort].\n\n[proven-correct implementation of insertion sort]: https://github.com/davidfstr/idris-insertion-sort\n\n## Prerequisites\n\n* Idris 0.9.16\n* Make\n\n## How to Run\n\n```\nmake run\n```\n\n## Example Game\n\n```\n$ make run\nidris -o TicTacToe TicTacToe.idr\n./TicTacToe\n   |   |   \n---|---|---\n   |   |   \n---|---|---\n   |   |   \n\nNext move? (0-8) 4\n\n   |   |   \n---|---|---\n   | X |   \n---|---|---\n   |   |   \n\nNext move? (0-8) 0\n\n O |   |   \n---|---|---\n   | X |   \n---|---|---\n   |   |   \n\nNext move? (0-8) 2\n\n O |   | X \n---|---|---\n   | X |   \n---|---|---\n   |   |   \n\nNext move? (0-8) 1\n\n O | O | X \n---|---|---\n   | X |   \n---|---|---\n   |   |   \n\nNext move? (0-8) 6\n\n O | O | X \n---|---|---\n   | X |   \n---|---|---\n X |   |   \n\nX wins!\n```\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfstr%2Ftic-tac-idris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidfstr%2Ftic-tac-idris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfstr%2Ftic-tac-idris/lists"}