{"id":23665793,"url":"https://github.com/b3ta-blocker/tic-tac-toe-game","last_synced_at":"2025-09-03T04:39:07.489Z","repository":{"id":179250673,"uuid":"663197360","full_name":"B3TA-BLOCKER/Tic-Tac-Toe-Game","owner":"B3TA-BLOCKER","description":"This code is a simple Tic-Tac-Toe game where two players take turns entering numbers on a 3x3 grid. It checks for a winning condition and displays the winner.","archived":false,"fork":false,"pushed_at":"2024-07-24T19:25:44.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T21:36:56.365Z","etag":null,"topics":["arrays","conditional-statements","control-flow","file-operation","functions","header-files","input-output","loops","recursion","strings"],"latest_commit_sha":null,"homepage":"","language":"C++","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/B3TA-BLOCKER.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,"zenodo":null}},"created_at":"2023-07-06T19:12:09.000Z","updated_at":"2024-07-24T19:25:47.000Z","dependencies_parsed_at":"2023-12-06T22:29:04.590Z","dependency_job_id":"822d4e96-b129-4c83-84b8-95cf2931f0eb","html_url":"https://github.com/B3TA-BLOCKER/Tic-Tac-Toe-Game","commit_stats":null,"previous_names":["b3ta-blocker/tic-tac-toe-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/B3TA-BLOCKER/Tic-Tac-Toe-Game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3TA-BLOCKER%2FTic-Tac-Toe-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3TA-BLOCKER%2FTic-Tac-Toe-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3TA-BLOCKER%2FTic-Tac-Toe-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3TA-BLOCKER%2FTic-Tac-Toe-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/B3TA-BLOCKER","download_url":"https://codeload.github.com/B3TA-BLOCKER/Tic-Tac-Toe-Game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3TA-BLOCKER%2FTic-Tac-Toe-Game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273392282,"owners_count":25097257,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["arrays","conditional-statements","control-flow","file-operation","functions","header-files","input-output","loops","recursion","strings"],"created_at":"2024-12-29T06:16:28.312Z","updated_at":"2025-09-03T04:39:07.464Z","avatar_url":"https://github.com/B3TA-BLOCKER.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e🎮 Tic-Tac-Toe Game\u003c/h1\u003e\n  \u003cp\u003e\u003cstrong\u003eWelcome to the \u003cstrong\u003eTic-Tac-Toe Game\u003c/strong\u003e! 🚀 Challenge a friend in this classic console-based game and see who can claim victory or force a draw. Keep track of your scores and have endless fun!\u003c/strong\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n## 🌟 Features\n- Two-player gameplay\n- Score tracking for each player\n- Announcement of winner or draw after each round\n\n## 🕹️ How to Play\n1. The game prompts players to enter their names.\n2. The tic-tac-toe board is displayed, with Player 1 (X) starting the game.\n3. Players take turns entering a number (1 to 9) to place their symbol on the board.\n4. After each move, the game checks for a winner or a draw.\n5. The result is announced, and players can choose to play again.\n\n## 🎮 Game Controls\n- Use numbers 1 to 9 to place your symbol on the corresponding board position.\n- Follow on-screen instructions during your turn. 🎲\n\n## 📜 Game Rules\n- The first player to form a horizontal, vertical, or diagonal line with their symbol wins.\n- If no player wins, the game ends in a draw.\n\n## 🚀 Clone and Use Tic-Tac-Toe Game\n\n### Step 1: Clone the Repository\nOpen your terminal and run the following command:\n```bash\ngit clone https://github.com/B3TA-BLOCKER/Tic-Tac-Toe-Game.git\n```\n\n### Step 2: Navigate to the Project Folder\n```bash\ncd Tic-Tac-Toe-Game\n```\n\n### Step 3: Compile the Source Code\n```bash\ng++ main.cpp -o main\n```\n\n### Step 4: Execute the Program\n```bash\n./main\n```\n\u003cbr\u003e\n\n## 📝 Flowchart\n\n\u003cbr\u003e\n\n```mermaid\ngraph TD;\n    Start([Start]) --\u003e |Enter Player Names| EnterNames[Enter Player 1 and Player 2 names]\n    EnterNames --\u003e DisplayBoard[Display Board]\n    DisplayBoard --\u003e GamePlay[Gameplay Loop]\n    GamePlay --\u003e Player1Turn[Player 1's Turn]\n    Player1Turn --\u003e CheckMove1{Valid Move?}\n    CheckMove1 --\u003e |No| InvalidMove1[Prompt Invalid Move]\n    InvalidMove1 --\u003e Player1Turn\n    CheckMove1 --\u003e |Yes| UpdateBoard1[Update Board with Player 1's Move]\n    UpdateBoard1 --\u003e CheckGame1{Game Won?}\n    CheckGame1 --\u003e |Yes| EndGame[End Game]\n    CheckGame1 --\u003e |No| CheckDraw1{Game Draw?}\n    CheckDraw1 --\u003e |Yes| EndGame\n    CheckDraw1 --\u003e |No| Player2Turn[Player 2's Turn]\n    Player2Turn --\u003e CheckMove2{Valid Move?}\n    CheckMove2 --\u003e |No| InvalidMove2[Prompt Invalid Move]\n    InvalidMove2 --\u003e Player2Turn\n    CheckMove2 --\u003e |Yes| UpdateBoard2[Update Board with Player 2's Move]\n    UpdateBoard2 --\u003e CheckGame2{Game Won?}\n    CheckGame2 --\u003e |Yes| EndGame\n    CheckGame2 --\u003e |No| CheckDraw2{Game Draw?}\n    CheckDraw2 --\u003e |Yes| EndGame\n    CheckDraw2 --\u003e Player1Turn\n    EndGame --\u003e PlayAgain{Play Again?}\n    PlayAgain --\u003e |Yes| ResetBoard[Reset Board]\n    ResetBoard --\u003e DisplayBoard\n    PlayAgain --\u003e |No| ThankYou[Thank You Message]\n    ThankYou --\u003e Exit[Exit]\n\n    style Start fill:#333,stroke:#fff,stroke-width:2px;\n    style Exit fill:#333,stroke:#fff,stroke-width:2px;\n    style DisplayBoard fill:#444,stroke:#fff,stroke-width:2px;\n    style GamePlay fill:#444,stroke:#fff,stroke-width:2px;\n    style EndGame fill:#444,stroke:#fff,stroke-width:2px;\n    style PlayAgain fill:#444,stroke:#fff,stroke-width:2px;\n    style InvalidMove1 fill:#555,stroke:#fff,stroke-width:2px;\n    style InvalidMove2 fill:#555,stroke:#fff,stroke-width:2px;\n    style ThankYou fill:#555,stroke:#fff,stroke-width:2px;\n```\n\u003cbr\u003e\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3ta-blocker%2Ftic-tac-toe-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb3ta-blocker%2Ftic-tac-toe-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3ta-blocker%2Ftic-tac-toe-game/lists"}