{"id":22120991,"url":"https://github.com/omid2831/tic-tac-toe","last_synced_at":"2025-03-24T06:44:32.820Z","repository":{"id":217201238,"uuid":"743273516","full_name":"Omid2831/Tic-tac-toe","owner":"Omid2831","description":"A fun and engaging version of the classic Tic Tac Toe game, designed for two players to compete","archived":false,"fork":false,"pushed_at":"2025-03-23T12:54:52.000Z","size":5163,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T13:37:59.463Z","etag":null,"topics":["game","java","swing-application","swing-gui"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Omid2831.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-01-14T20:54:21.000Z","updated_at":"2024-12-11T22:01:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d6df1d1-1a13-4332-ad94-74f5af957584","html_url":"https://github.com/Omid2831/Tic-tac-toe","commit_stats":null,"previous_names":["omid2831/tic-tac-toe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omid2831%2FTic-tac-toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omid2831%2FTic-tac-toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omid2831%2FTic-tac-toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omid2831%2FTic-tac-toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Omid2831","download_url":"https://codeload.github.com/Omid2831/Tic-tac-toe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245224198,"owners_count":20580363,"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":["game","java","swing-application","swing-gui"],"created_at":"2024-12-01T14:32:06.052Z","updated_at":"2025-03-24T06:44:32.775Z","avatar_url":"https://github.com/Omid2831.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic Tac Toe Game 🎮\n\nThis is a **native Java** implementation of the classic **Tic Tac Toe** game. The game features a graphical user interface (GUI) built using `Swing`, offering smooth gameplay with automatic win/draw detection.\n\n---\n\n## 🖼️ Demo\n### Gameplay Example:\n\n\n[![Gameplay Screenshot](capture/pic.png)](capture/Demo.mp4)\n\u003e *Click the image above to watch the gameplay video.*\n## ✨ Features\n\n- **Two-player gameplay**: Play with friends using classic Tic Tac Toe rules.\n- **GUI built with Swing**: Intuitive interface for quick interactions.\n- **Dynamic game logic**: The game checks for winners and draws automatically.\n---\n\n## 🚀 How to Run\n\n### Prerequisites\n- [**Java Development Kit (JDK)**](https://www.oracle.com/java/technologies/downloads/) installed (version 8 or higher)\n- [**Git**](https://git-scm.com/) installed\n\n### Clone the Repository\n1. Open your terminal and clone the repository:\n```bash\ngit clone https://github.com/Omid2831/Tic-tac-toe.git\n```\n2. Navigate into the project directory:\n```bash\ncd Tic-tac-toe\n```\n### Compile and Run\n1. Compile the source files and place the compiled classes in the `bin` directory:\n``` bash\njavac -d bin *.java\n```\n3. Run the program:\n```bash\njava -cp bin main\n```\n(Please make sure main.java is your program's entry point.)  \n---\n### 🛠️ File Structure\n  \u003cpre\u003e\n📂 Tic-tac-toe\n ├── main.java            # Main entry point of the application\n ├── TikTakToe.java       # Game logic and GUI implementation\n ├── main.class           # Compiled bytecode for main\n ├── TikTakToe.class      # Compiled bytecode for game logic\n ├── 📂 capture\n │    ├── Demo.mp4      # Gameplay video\n │    └── pic.png         # Screenshot of the game\n    \u003c/pre\u003e\n---\n## 🧑‍💻 How It Works\n\nThe game operates as follows:\n\n1. **Game Setup**\n   - The game is played on a 3x3 grid.\n   - Two players take turns to mark their respective symbols (`X` or `O`).\n\n2. **Gameplay**\n   - The GUI dynamically updates to reflect each player's move.\n   - Players alternate turns until a win, draw, or loss condition is met.\n\n3. **Game Result Detection**\n   - The program checks for the following outcomes:\n     - **Wins**:\n       - Three aligned marks (horizontally, vertically, or diagonally).\n     - **Loss**:\n       - The other player achieves three aligned marks.\n     - **Draws**:\n       - The board is full, and no player has achieved three aligned marks.\n\n4. **Feedback**\n   - The GUI highlights:\n     - Winning cells if a player wins.\n     - A message indicates the game result (win, loss, or draw).\n---\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomid2831%2Ftic-tac-toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomid2831%2Ftic-tac-toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomid2831%2Ftic-tac-toe/lists"}