{"id":37109724,"url":"https://github.com/anastalaz/tictactoe","last_synced_at":"2026-01-14T13:02:39.978Z","repository":{"id":57551818,"uuid":"211184085","full_name":"anastalaz/tictactoe","owner":"anastalaz","description":"TicTacToe provides various AI agents for the Tic Tac Toe game.","archived":false,"fork":false,"pushed_at":"2019-10-10T19:09:28.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T06:37:32.906Z","etag":null,"topics":["ai","go","minmax-algorithm","tic-tac-toe"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anastalaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-26T21:26:15.000Z","updated_at":"2019-10-10T19:09:30.000Z","dependencies_parsed_at":"2022-09-26T18:41:34.217Z","dependency_job_id":null,"html_url":"https://github.com/anastalaz/tictactoe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anastalaz/tictactoe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anastalaz%2Ftictactoe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anastalaz%2Ftictactoe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anastalaz%2Ftictactoe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anastalaz%2Ftictactoe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anastalaz","download_url":"https://codeload.github.com/anastalaz/tictactoe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anastalaz%2Ftictactoe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["ai","go","minmax-algorithm","tic-tac-toe"],"created_at":"2026-01-14T13:02:39.462Z","updated_at":"2026-01-14T13:02:39.973Z","avatar_url":"https://github.com/anastalaz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TicTacToe      \u003ca href='https://github.com/jpoles1/gopherbadger' target='_blank'\u003e![gopherbadger-tag-do-not-edit](https://img.shields.io/badge/Go%20Coverage-28%25-orange.svg?longCache=true\u0026style=flat)\u003c/a\u003e [![GoDoc](https://godoc.org/github.com/tj/go-dropbox?status.svg)](https://godoc.org/github.com/anastalaz/tictactoe) ![](https://img.shields.io/badge/license-MIT-blue.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/anastalaz/easycron)](https://goreportcard.com/report/github.com/anastalaz/tictactoe)\n\n TicTacToe provides various AI agents for the Tic Tac Toe game.\n\n## About\n\n This package is inspired by a blog post by [Rob Heaton](https://robertheaton.com/2018/10/09/programming-projects-for-advanced-beginners-3-a/). As of now there are two agents implemented:\n 1. RandomAI: makes a random legal move.\n 2. MinMaxAI: uses the [MinMax](https://en.wikipedia.org/wiki/Minimax) algorithm to find the optimal move.\n\n There are three game modes to choose from:\n 1. Human vs. Human\n 2. Human vs. AI\n 3. AI vs. AI\n\n![Tic Tac Toe demo gif](docs/tictactoe.gif)\n\n\n\n## Installation\n\n```console\n$ go get github.com/anastalaz/tictactoe\n```\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tttt \"github.com/anastalaz/tictactoe\"\n)\n\nfunc main() {\n\tp1, p2, err := ttt.Config()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\tttt.Play(p1, p2)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanastalaz%2Ftictactoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanastalaz%2Ftictactoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanastalaz%2Ftictactoe/lists"}