{"id":17746762,"url":"https://github.com/andrekovac/git-tic-tac-toe","last_synced_at":"2026-02-23T00:03:41.875Z","repository":{"id":76129101,"uuid":"420357857","full_name":"andrekovac/git-tic-tac-toe","owner":"andrekovac","description":"🎓 Learn to use GitHub pull requests and solve merge conflicts by playing tac-tac-toe ❎🅾️❎","archived":false,"fork":false,"pushed_at":"2021-10-23T09:23:06.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-08-08T02:44:13.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrekovac.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-23T08:35:21.000Z","updated_at":"2023-08-08T02:44:13.425Z","dependencies_parsed_at":"2023-07-03T06:45:07.611Z","dependency_job_id":null,"html_url":"https://github.com/andrekovac/git-tic-tac-toe","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/andrekovac/git-tic-tac-toe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrekovac%2Fgit-tic-tac-toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrekovac%2Fgit-tic-tac-toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrekovac%2Fgit-tic-tac-toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrekovac%2Fgit-tic-tac-toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrekovac","download_url":"https://codeload.github.com/andrekovac/git-tic-tac-toe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrekovac%2Fgit-tic-tac-toe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29731683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T20:09:16.275Z","status":"ssl_error","status_checked_at":"2026-02-22T20:09:13.750Z","response_time":110,"last_error":"SSL_read: 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":[],"created_at":"2024-10-26T08:41:55.162Z","updated_at":"2026-02-23T00:03:41.848Z","avatar_url":"https://github.com/andrekovac.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git tic-tac-toe\n\n📚🎓 Learn to use GitHub **pull requests** and solve **merge conflicts** 😐 by playing [tic-tac-toe ❎🅾️❎](https://en.wikipedia.org/wiki/Tic-tac-toe) via git [pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests).\n\n## Game board\n\nExample of a valid state of the game after players have taken four turns:\n\n```\n     |     |\n  X  |  -  |  -\n_____|_____|_____\n     |     |\n  -  |  O  |  X\n_____|_____|_____\n     |     |\n  -  |  O  |  -\n     |     |\n```\n\n\n## How to play\n\n### Preparation\n\n1. All players join either team X or team O.\n2. All players clone this repository - you should be in the `main` branch by default.\n\n### First turn\n\n1. Team X begins: Players of team X each create a new local branch (e.g. `git checkout -b move-01`).\n2. Players of Team X set an `X` somewhere, e.g. it changes `game-board.txt` to the following for player 1:\n\n  ```\n       |     |\n    X  |  -  |  -\n  _____|_____|_____\n       |     |\n    -  |  -  |  -\n  _____|_____|_____\n       |     |\n    -  |  -  |  -\n       |     |\n  ```\n\n3. Players of Team X commit their changes locally (e.g. `git commit \"Ingenious move\"`)\n4. Players of Team X push the new branch to the remote repository (`git push`) - git might ask you to first create the remote branch - the prompt will contain the command to do so (probably `git push --set-upstream origin move-01`).\n5. Inside GitHub players of Team X open a pull request (a.k.a. **PR**) (\"New pull request\") from the newly created branch onto `main`.\n6. Each player adds all other players (including players of Team O) as reviewers to the **PR**.\n7. If all reviewers approve the PR, player merges the PR.\n\n  - This step might not work right away. In case of **merge conflicts**, players have to discuss in comments of PR and resolve merge conflicts.\n  - To this end you'll have to pull changes from the remote server (`git pull`) and resolve the conflicts.\n\n### Other turns\n\n- The game continues. Its Team O's turn. All players of Team 0 follow the steps above (just uses `O` as a symbol).\n- Teams take turns in this manner until we have a winner or end in a draw.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrekovac%2Fgit-tic-tac-toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrekovac%2Fgit-tic-tac-toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrekovac%2Fgit-tic-tac-toe/lists"}