{"id":25928102,"url":"https://github.com/liubomyr123/makefile_tictactoe","last_synced_at":"2026-06-08T10:33:36.679Z","repository":{"id":276127087,"uuid":"895665149","full_name":"liubomyr123/Makefile_tictactoe","owner":"liubomyr123","description":"A simple Tic Tac Toe game in C with GTK+3, featuring a GUI, player turns, winner detection, and game restart functionality.","archived":false,"fork":false,"pushed_at":"2025-02-06T12:10:19.000Z","size":17,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T10:36:53.348Z","etag":null,"topics":["algorithms","c","desktop-application","gtk","gtk3","gui","makefile","tic-tac-toe","tic-tac-toe-c"],"latest_commit_sha":null,"homepage":"","language":"C","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/liubomyr123.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-28T16:29:28.000Z","updated_at":"2025-02-09T19:41:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2b57f18-5f20-497c-ab66-5275825beac1","html_url":"https://github.com/liubomyr123/Makefile_tictactoe","commit_stats":null,"previous_names":["liubomyr123/makefile_tictactoe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liubomyr123/Makefile_tictactoe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liubomyr123%2FMakefile_tictactoe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liubomyr123%2FMakefile_tictactoe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liubomyr123%2FMakefile_tictactoe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liubomyr123%2FMakefile_tictactoe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liubomyr123","download_url":"https://codeload.github.com/liubomyr123/Makefile_tictactoe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liubomyr123%2FMakefile_tictactoe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34059156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":["algorithms","c","desktop-application","gtk","gtk3","gui","makefile","tic-tac-toe","tic-tac-toe-c"],"created_at":"2025-03-03T21:11:43.097Z","updated_at":"2026-06-08T10:33:36.666Z","avatar_url":"https://github.com/liubomyr123.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic Tac Toe Game in C with GTK\n\nThis project is a simple implementation of the classic Tic Tac Toe game using the C programming language and GTK+3 for the graphical user interface. It allows two players to play on the same computer, with the option to restart the game once it ends.\n\n## Features\n\n- Play Tic Tac Toe with two players (Player 1: X, Player 2: O)\n- Graphical user interface created using GTK+3\n- Reset the game anytime by clicking the \"Restart\" button\n- Displays the winner (Player 1 or Player 2) or \"Game Over\" when the game ends in a draw\n- Simple and responsive interface\n\n## Requirements\n\nTo build and run this project, you need to have the following installed:\n\n- **GCC** (GNU Compiler Collection) for compiling the C code\n- **GTK+3** library for creating the graphical user interface\n  - On Ubuntu, you can install it with:\n    ```bash\n    sudo apt-get install libgtk-3-dev\n    ```\n- **pkg-config** for managing compilation flags for GTK+3 (usually comes with GTK installation)\n\n## Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/liubomyr123/Makefile_tictactoe.git\n    ```\n\n2. Build the project:\n    ```bash\n    make\n    ```\n\n3. Run the game:\n    ```bash\n    ./tic_tac_toe\n    ```\n\n## How to Play\n\n- Player 1 uses `X` and Player 2 uses `O`.\n- Click on any of the 9 grid cells to place your mark (`X` or `O`).\n- The game will detect when a player wins or if the game ends in a draw.\n- Once the game ends, click the **\"Restart\"** button to start a new game.\n\n## Code Structure\n\n- **tic_tac_toe.c**: Contains the main game logic and GUI implementation using GTK.\n- **Makefile**: Used to build the project using `gcc` with necessary GTK flags.\n- **README.md**: This file, providing documentation for the project.\n\n## How It Works\n\n1. The game initializes a 3x3 grid of buttons for the Tic Tac Toe board.\n2. Each button represents a position in the grid. Players take turns clicking on the buttons to place their marks.\n3. The program checks after every move if there is a winner or if the game is a draw.\n4. If a player wins, the game displays a message indicating the winner.\n5. If there is no winner and all positions are filled, the game ends in a draw.\n\n## Game Logic\n\nThe game logic checks the following possible winning combinations for both players:\n\n- Rows: (1, 2, 3), (4, 5, 6), (7, 8, 9)\n- Columns: (1, 4, 7), (2, 5, 8), (3, 6, 9)\n- Diagonals: (1, 5, 9), (3, 5, 7)\n\nIf any of these combinations are filled by the same player's mark (`X` or `O`), that player is declared the winner.\n\n## Contributions\n\nFeel free to fork this repository, create issues, and submit pull requests. Contributions are welcome!\n\n---\n\nEnjoy the game! 😊\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliubomyr123%2Fmakefile_tictactoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliubomyr123%2Fmakefile_tictactoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliubomyr123%2Fmakefile_tictactoe/lists"}