{"id":17474755,"url":"https://github.com/ayushshahh/tic-tac-toe","last_synced_at":"2026-02-06T23:33:20.005Z","repository":{"id":46157461,"uuid":"377775549","full_name":"AyushShahh/Tic-Tac-Toe","owner":"AyushShahh","description":"A classic Tic-Tac-Toe game. Have fun playing","archived":false,"fork":false,"pushed_at":"2022-09-23T12:31:11.000Z","size":595,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T05:50:52.270Z","etag":null,"topics":["html-css-javascript","html-css-javascript-games","javascript","tic-tac-toe","tic-tac-toe-game","tic-tac-toe-javascript","tictactoe","tictactoe-game","tictactoe-javascript","webgame"],"latest_commit_sha":null,"homepage":"https://tictactoeegame.netlify.app/","language":"JavaScript","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/AyushShahh.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":"2021-06-17T09:28:40.000Z","updated_at":"2023-07-02T09:02:25.000Z","dependencies_parsed_at":"2022-09-24T18:13:13.022Z","dependency_job_id":null,"html_url":"https://github.com/AyushShahh/Tic-Tac-Toe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AyushShahh/Tic-Tac-Toe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyushShahh%2FTic-Tac-Toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyushShahh%2FTic-Tac-Toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyushShahh%2FTic-Tac-Toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyushShahh%2FTic-Tac-Toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AyushShahh","download_url":"https://codeload.github.com/AyushShahh/Tic-Tac-Toe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyushShahh%2FTic-Tac-Toe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29180434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T23:15:33.022Z","status":"ssl_error","status_checked_at":"2026-02-06T23:15:09.128Z","response_time":59,"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":["html-css-javascript","html-css-javascript-games","javascript","tic-tac-toe","tic-tac-toe-game","tic-tac-toe-javascript","tictactoe","tictactoe-game","tictactoe-javascript","webgame"],"created_at":"2024-10-18T18:24:01.018Z","updated_at":"2026-02-06T23:33:19.980Z","avatar_url":"https://github.com/AyushShahh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic-Tac-Toe ![logo](assets/favicons/favicon-32x32.png)\n\n[![Views](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FAyushShahh%2FTic-Tac-Toe\u0026count_bg=%23000000\u0026title_bg=%23555555\u0026icon=github.svg\u0026icon_color=%23E7E7E7\u0026title=views\u0026edge_flat=false)](https://hits.seeyoufarm.com)\n[![GitHub stars](https://img.shields.io/github/stars/AyushShahh/Tic-Tac-Toe)](https://github.com/AyushShahh/Tic-Tac-Toe/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/AyushShahh/Tic-Tac-Toe)](https://github.com/AyushShahh/Tic-Tac-Toe/network)\n[![GitHub issues](https://img.shields.io/github/issues/AyushShahh/Tic-Tac-Toe)](https://github.com/AyushShahh/Tic-Tac-Toe/issues)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AyushShahh/Tic-Tac-Toe?color=yellow)\n![Lines of code](https://img.shields.io/tokei/lines/github/AyushShahh/Tic-Tac-Toe?label=total%20lines%20of%20code)\n[![Twitter](https://img.shields.io/twitter/url?label=Tweet%20this\u0026logoColor=black\u0026style=social\u0026url=https%3A%2F%2Fgithub.com%2FAyushShahh%2FTic-Tac-Toe)](https://twitter.com/intent/tweet?text=Woah!%20This%20is%20cool.\u0026url=https%3A%2F%2Fgithub.com%2FAyushShahh%2FTic-Tac-Toe)\n\u003cbr\u003e\n\nA classic game built using **HTML**, **CSS** \u0026 **JavaScript**.\u003cbr\u003e\nCheck the live site **[here](https://tictactoeegame.netlify.app)**.\n\n## Table of Contents\n- [Game walkthrough](#game-walkthrough)\n- [Brief](#brief)\n- [Playing](#playing)\n- [To-Do List](#to-do-list)\n- [APIs used](#apis-used)\n- [External Libraries used](#external-libraries-used)\n- [Have an idea? or questions?](#have-an-idea-or-questions)\n- [Found a bug?](#found-a-bug)\n- [Contributing](#contributing)\n- [Contact](#contact)\n\n## Game Walkthrough\nExample of the game made:\u003cbr\u003e\n\n\u003cimg src=\"assets/demos/walkthrough-scores.gif\" width=\"75%\"\u003e\n\n## Brief\nTic-tac-toe is a game for two players, :x: and :o:, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a diagonal, horizontal, or vertical row is the winner.\n___\n\n### \u003cb\u003ePlaying\u003c/b\u003e:\n- **X** plays first\n- Click on any grid box to play your move\n- Click reset button after completion to reset the board and play again\n\n ## To-Do List\n This contains the list of features I'm working on or wish to implement them in future.\n - [x] Adding two player mode\n - [ ] Giving user the option to either play as :x: or :o:\n - [x] Showing scores\n - [ ] :x: and :o: animate while making a move\n - [ ] Linethrough on the respective column, row or diagonal when a player wins\n - [x] Adding AI using JavaScript minimax algorithm\n - [ ] Adding multiplayer mode\n\n\u003eKnow how to implement these features and contribute? Check [Contributions](#contributing) section.\u003cbr\u003e\n**Have more ideas?** Check [this](#have-an-idea-or-questions)\n\n## APIs used\n[Web Share API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Share_API) - It provides a way to trigger the native share dialog of a device when sharing content, directly from a website or web application.\n\n[Service Worker API](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) - Offers offline experience to a user.\n\n## External Libraries used\n[PWACompat](https://github.com/GoogleChromeLabs/pwacompat) - PWACompat is a library that brings the Web App Manifest to non-compliant browsers for better Progressive Web Apps.\u003cbr\u003e\nRead more on their [blog](https://developers.google.com/web/updates/2018/07/pwacompat).\n\n## Have an idea? or questions?\nIf you have an amazing idea for this game, or you got some questions, you can discuss them in the [discussions](https://github.com/AyushShahh/Tic-Tac-Toe/discussions) tab.\n\n---\nIf you want to implement your idea by contributing, check [contributing](#contributing) section.\n\n## Found a bug?\nIf you find a bug, you can always **open an issue** in the [issues tab](https://github.com/AyushShahh/Tic-Tac-Toe/issues) to talk about it. Still, if you want to **contact me**, check [here](#contact).\n\n---\n**Note:** Make sure you browse through the existing issues to check if the issue already exists.\u003cbr\u003e\n\u003eKnow a fix or want to contribute? Check [contributions](#contributing) section.\n\n## Contributing\nPull requests are always welcome. But before making any major changes you can open an [issue](https://github.com/AyushShahh/Tic-Tac-Toe/issues) to discuss.\n\nFor less major or minor changes, you can open a [pull request](https://github.com/AyushShahh/Tic-Tac-Toe/pulls).\n\nYou can also [contact](#contact) me.\u003cbr\u003e\n**Thanks for contributing.**\n\n# Contact\nI don't like spams\n\u003cp align=\"left\"\u003e\n\u003ca href=\"https://twitter.com/ayushshah__\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/AyushShahh/AyushShahh/main/assets/png/twitter.png\" height=\"40\"/\u003e\u003c/a\u003e  \n\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003ca href=\"https://www.instagram.com/ayushshah__/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/AyushShahh/AyushShahh/main/assets/png/instagram.png\" height=\"40\"/\u003e\u003c/a\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003ca href=\"https://www.quora.com/profile/Ayush-Shah-133/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/AyushShahh/AyushShahh/main/assets/png/quora.png\" height=\"40\"/\u003e\u003c/a\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003ca href=\"https://open.spotify.com/user/mkxf4wwjr521oe9hjrvjbm4f6\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/AyushShahh/AyushShahh/main/assets/png/spotify.png\" height=\"40\"/\u003e\u003c/a\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003ca href=\"https://ayush-shah.medium.com\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/AyushShahh/AyushShahh/main/assets/png/medium.png\" height=\"40\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\u003cbr\u003e\n\n**[Back to top](#tic-tac-toe-)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayushshahh%2Ftic-tac-toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayushshahh%2Ftic-tac-toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayushshahh%2Ftic-tac-toe/lists"}