{"id":13514911,"url":"https://github.com/aiyan/tictactoe","last_synced_at":"2025-07-24T03:06:31.050Z","repository":{"id":87777308,"uuid":"256399903","full_name":"aiyan/tictactoe","owner":"aiyan","description":"A blazing-fast, optimal tic-tac-toe agent written in C++","archived":false,"fork":false,"pushed_at":"2020-05-02T22:29:28.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T19:39:40.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/aiyan.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":"2020-04-17T04:20:34.000Z","updated_at":"2021-07-12T23:14:46.000Z","dependencies_parsed_at":"2024-01-22T12:37:27.923Z","dependency_job_id":null,"html_url":"https://github.com/aiyan/tictactoe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aiyan/tictactoe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiyan%2Ftictactoe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiyan%2Ftictactoe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiyan%2Ftictactoe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiyan%2Ftictactoe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aiyan","download_url":"https://codeload.github.com/aiyan/tictactoe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiyan%2Ftictactoe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266786798,"owners_count":23983871,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-08-01T05:01:03.609Z","updated_at":"2025-07-24T03:06:31.028Z","avatar_url":"https://github.com/aiyan.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# tictactoe\nA blazing-fast, optimal tic-tac-toe agent written in C++.\n\nSome of the numerous optimizations made:\n- Negamax search with alpha-beta pruning.\n- Representation of positions as bitboards and use of bitwise\noperators for fast state checking.\n- Optimized move-ordering for early cut-offs.\n- Transposition table storing the results of previously searched\nnodes.\n- Leaf evaluation heuristics (leaf nodes are scored based on\nthe number of moves played and the game result).\n\n\u003eThis implementation is a _proof of concept_: tic-tac-toe has a\nrelatively small search tree when compared to games like chess\nor Go and can be solved without such optimizations.\n\n\u003eHowever, it demonstrates the application of high-level \nsearch algorithms that can be utilized on _games with\nsignificantly higher complexity._\n\nSee the performance benchmarking results\n(each the average of 10,000 trials):\n\n|Initial Board State|Parameters|Mean Time|\n|----|----|----|\n|Empty|Transposition table reset between trials|309 μs|\n|Empty|Transposition table preserved between trials|41 μs|\n\nYou can experiment with the agent for yourself using\n`Benchmark.cpp`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiyan%2Ftictactoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiyan%2Ftictactoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiyan%2Ftictactoe/lists"}