{"id":15110430,"url":"https://github.com/milind-ranjan/tictactoe","last_synced_at":"2026-01-18T19:07:07.924Z","repository":{"id":257472080,"uuid":"850314866","full_name":"Milind-Ranjan/TicTacToe","owner":"Milind-Ranjan","description":"This Android app features Tic Tac Toe with offline and online modes. Play locally or connect online using unique game IDs. It includes Firebase integration for real-time chat and game state management.","archived":false,"fork":false,"pushed_at":"2024-09-17T16:45:50.000Z","size":2978,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T17:09:47.403Z","etag":null,"topics":["android-application","android-studio","cloudfirestore","firebase","firebase-realtime-database","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/Milind-Ranjan.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":"2024-08-31T12:40:33.000Z","updated_at":"2024-09-17T16:45:53.000Z","dependencies_parsed_at":"2024-10-31T08:42:27.514Z","dependency_job_id":"4d451f61-8c13-48a8-a8dd-f43f8679ef2d","html_url":"https://github.com/Milind-Ranjan/TicTacToe","commit_stats":null,"previous_names":["milind-ranjan/tictactoe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milind-Ranjan%2FTicTacToe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milind-Ranjan%2FTicTacToe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milind-Ranjan%2FTicTacToe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milind-Ranjan%2FTicTacToe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Milind-Ranjan","download_url":"https://codeload.github.com/Milind-Ranjan/TicTacToe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369965,"owners_count":20927928,"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","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":["android-application","android-studio","cloudfirestore","firebase","firebase-realtime-database","kotlin"],"created_at":"2024-09-25T23:44:51.647Z","updated_at":"2026-01-18T19:07:07.896Z","avatar_url":"https://github.com/Milind-Ranjan.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic Tac Toe App\n\n## Overview\n\nThis Tic Tac Toe app allows users to play the classic game either offline or online. It integrates with Firebase Realtime Database for real-time chat functionality and Cloud Firestore for game state management. Users can join or create games online and communicate through a chat interface.\n\n## Features\n\n- **Play Offline:** Users can play Tic Tac Toe against a friend on the same device.\n- **Create/Join Online Game:** Users can create or join a game online using a unique game ID.\n- **Real-time Chat:** Integrated Firebase Realtime Database for real-time chat between players.\n- **Game State Management:** Uses Firebase Cloud Firestore to store and manage game state.\n\n## Getting Started\n\n### Prerequisites\n\n- [Android Studio](https://developer.android.com/studio) with the latest SDK.\n- [Firebase Account](https://firebase.google.com/) and Firebase project setup.\n- [Google Services JSON](https://firebase.google.com/docs/android/setup) file added to your project.\n\n### Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/Milind-Ranjan/TicTacToe.git\n2. Open the project in Android Studio:\n\t- Launch Android Studio.\n\t- Select Open and navigate to the project directory.\n3. Add Firebase to your project:\n   \t- Follow the Firebase setup instructions to add Firebase to your Android project.\n\t- Download the google-services.json file and place it in the app/ directory.\n4. Add Firebase dependencies:\n   In your build.gradle files (both project and app-level), add the necessary Firebase dependencies:\n\t```bash\n\t// Project-level build.gradle\n\tbuildscript {\n    \tdependencies {\n        \tclasspath 'com.google.gms:google-services:4.3.15' // Update to latest version\n    \t}\n\t}\n\n\t// App-level build.gradle\n\tdependencies {\n    \timplementation 'com.google.firebase:firebase-auth:22.0.0' // Update to latest version\n    \timplementation 'com.google.firebase:firebase-database:20.0.0' // Update to latest version\n    \timplementation 'com.google.firebase:firebase-firestore:24.0.0' // Update to latest version\n\t}\n\n\tapply plugin: 'com.google.gms.google-services'\n 6. Configure Firebase Realtime Database:\n\t- Go to the Firebase Console and navigate to Realtime Database.\n\t- Set the database rules to allow authenticated users only (as defined earlier).\n7. Run the app:\n\t- Connect an Android device or start an emulator.\n\t- Click on the Run button in Android Studio.\n\n\n## File Structure\n\n- app/src/main/java/com/yourapp/: Contains Java/Kotlin source files.\n- app/src/main/res/layout/: Contains XML layout files.\n- app/src/main/res/values/colors.xml: Defines color resources.\n- app/src/main/res/values/strings.xml: Defines string resources.\n- app/src/main/res/values/styles.xml: Defines style resources.\n- app/src/main/res/xml/: Contains Firebase configuration files.\n\n## Cloud Firestore Structure\n\n- games: Collection storing game data with documents for each game.\n- chats: Subcollection under each game document for chat messages.\n\n## Contributing\n\n1.\tFork the repository.\n2.\tCreate a new branch (git checkout -b feature-branch).\n3.\tCommit your changes (git commit -am 'Add new feature').\n4.\tPush to the branch (git push origin feature-branch).\n5.\tCreate a new Pull Request.\n\n## Firebase Setup\n\nRealtime Database Rules\n```bash\n{\n  \"rules\": {\n    \"tictactoe\": {\n      \"games\": {\n        \"$gameId\": {\n          \"chats\": {\n            \".read\": \"true\",\n            \".write\": \"true\"\n          }\n        }\n      }\n    }\n  }\n}\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilind-ranjan%2Ftictactoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilind-ranjan%2Ftictactoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilind-ranjan%2Ftictactoe/lists"}