{"id":22967819,"url":"https://github.com/ibensusan/tic-tac-toe-game","last_synced_at":"2025-07-18T02:37:24.337Z","repository":{"id":258259310,"uuid":"866553327","full_name":"iBensusan/Tic-tac-toe-Game","owner":"iBensusan","description":"Development of tic-tac-toe game using Python","archived":false,"fork":false,"pushed_at":"2024-10-02T13:23:29.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T19:49:28.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/iBensusan.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-02T13:22:03.000Z","updated_at":"2024-10-08T08:17:02.000Z","dependencies_parsed_at":"2024-10-18T07:02:37.637Z","dependency_job_id":"3eb53a00-c08b-4684-847e-87ab2fda8ecb","html_url":"https://github.com/iBensusan/Tic-tac-toe-Game","commit_stats":null,"previous_names":["ibensusan/tic-tac-toe-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBensusan%2FTic-tac-toe-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBensusan%2FTic-tac-toe-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBensusan%2FTic-tac-toe-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBensusan%2FTic-tac-toe-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iBensusan","download_url":"https://codeload.github.com/iBensusan/Tic-tac-toe-Game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246758654,"owners_count":20828969,"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":[],"created_at":"2024-12-14T21:14:53.142Z","updated_at":"2025-04-02T05:19:08.489Z","avatar_url":"https://github.com/iBensusan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic-Tac-Toe Game\n\nThis project is a simple console-based implementation of the classic **Tic-Tac-Toe** game. It allows two players to play against each other on a 3x3 grid, where players take turns to place their marks (X or O) until one of them wins or the game ends in a draw.\n\n## How to Play\n\n1. The game starts with an empty 3x3 board.\n2. Player 1 is assigned the mark **X** and Player 2 is assigned **O**.\n3. Players take turns to input the row and column number to place their marks.\n4. The game checks for a winner or a draw after each turn.\n\n### Game Rules\n\n- A player wins by placing three of their marks in a horizontal, vertical, or diagonal row.\n- If all the spots are filled and no player has won, the game ends in a draw.\n\n## Project Structure\n\n- **print_board**: Displays the current state of the game board.\n- **make_move**: Updates the board with the player's move.\n- **get_cells**: Retrieves specific cells from the board to check for a winning combination.\n- **is_group_complete**: Checks if a group of cells (row, column, or diagonal) is completely filled.\n- **are_all_cells_the_same**: Determines if all the cells in a group are the same (i.e., player has won).\n- **is_game_over**: Checks if the game has ended with a win or draw.\n- **play_game**: The main function that runs the game loop, allowing players to make moves until the game is over.\n\n## Running the Game\n\nTo play the game, simply run the Python script:\n\n## License\n\nThis project is licensed under the MIT License. \n\n```bash\npython tic_tac_toe.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibensusan%2Ftic-tac-toe-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibensusan%2Ftic-tac-toe-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibensusan%2Ftic-tac-toe-game/lists"}