{"id":26481667,"url":"https://github.com/0xpixelninja/tic-tac-toe-fastapi","last_synced_at":"2026-05-07T09:34:23.280Z","repository":{"id":260673436,"uuid":"868396802","full_name":"0xPixelNinja/tic-tac-toe-fastapi","owner":"0xPixelNinja","description":"Tic-Tac-Toe game with focus on the back-end development using FastAPI and MongoDB. The RESTful API provides endpoints for game create, player invites, move processing, and game status.","archived":false,"fork":false,"pushed_at":"2024-10-08T17:41:17.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T04:35:42.143Z","etag":null,"topics":["fastapi","python-game","python-webapp","tic-tac-toe"],"latest_commit_sha":null,"homepage":"https://tic-tac-toe-fastapi.onrender.com","language":"Python","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/0xPixelNinja.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":"2024-10-06T09:26:23.000Z","updated_at":"2025-01-29T11:21:24.000Z","dependencies_parsed_at":"2024-11-01T19:19:20.687Z","dependency_job_id":null,"html_url":"https://github.com/0xPixelNinja/tic-tac-toe-fastapi","commit_stats":null,"previous_names":["0xpixelninja/tic-tac-toe-fastapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xPixelNinja/tic-tac-toe-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPixelNinja%2Ftic-tac-toe-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPixelNinja%2Ftic-tac-toe-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPixelNinja%2Ftic-tac-toe-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPixelNinja%2Ftic-tac-toe-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xPixelNinja","download_url":"https://codeload.github.com/0xPixelNinja/tic-tac-toe-fastapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPixelNinja%2Ftic-tac-toe-fastapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32731603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"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":["fastapi","python-game","python-webapp","tic-tac-toe"],"created_at":"2025-03-20T03:35:39.730Z","updated_at":"2026-05-07T09:34:23.259Z","avatar_url":"https://github.com/0xPixelNinja.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic-tac-toe-fastapi\nTic-Tac-Toe game with focus on the back-end development using FastAPI and MongoDB. The RESTful API provides endpoints for game create, player invites, move processing, and game status.\n\n* **Create a new game:** Start a fresh game and get a unique Game ID.\n* **Invite a friend:** Share your Game ID with a friend to play against them.\n* **Make moves:** Take turns placing your X or O on the board.\n* **Real-time updates:** See the game board update instantly after each move (game boards update every 3 second).\n* **Game status:** Get notified when the game is over and who the winner is (or if it's a draw).\n\n## How to Play\n\n1. **Create a game:** Click the \"Create Game\" button to start a new game.\n2. **Invite a friend:** Copy the generated Game ID and share it with your friend.\n3. **Join the game:** Your friend can join the game using the provided Game ID.\n4. **Take turns:** Click on an empty cell to place your symbol (X or O).\n5. **Win or Draw:** The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game. If all cells are filled and no one has won, it's a draw.\n\n## API Endpoints\n\nThe game interacts with the backend API with the following endpoints:\n\n* **POST /create_game:** Creates a new game and returns the game ID and initial board status.\n* **PUT /invite_player/{game_id}:** Adds a second player to an existing game.\n* **PUT /make_move/{game_id}:** Updates the game board with a player's move.\n* **GET /game_status/{game_id}:** Retrieves the current status and board state of a game.\n\n## TODO List\n\n* **AI opponent:** Implement an AI opponent to play against.\n* **Leaderboard:** Add a leaderboard to track player scores.\n* **Improved design:** Enhance the visual design with animations and more interactive elements (idk, someone help).\n* **User authentication:** Allow users to create accounts and track their game history.\n\n## Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests for bug fixes, feature enhancements, or design improvements.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpixelninja%2Ftic-tac-toe-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xpixelninja%2Ftic-tac-toe-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpixelninja%2Ftic-tac-toe-fastapi/lists"}