{"id":18448889,"url":"https://github.com/coding-pelican/tic-tac-toe-c","last_synced_at":"2025-04-15T11:28:01.504Z","repository":{"id":244791712,"uuid":"816223866","full_name":"coding-pelican/tic-tac-toe-c","owner":"coding-pelican","description":"Implementation of the classic Tic Tac Toe game in C. The game allows players to play against each other or against an AI opponent.","archived":false,"fork":false,"pushed_at":"2024-08-04T09:51:10.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T13:31:28.047Z","etag":null,"topics":["ascii","c","cli-game","console-based","console-game","game","minimax","minimax-algorithm","minimax-alpha-beta-pruning","terminal-based","terminal-game","tic-tac-toe","tic-tac-toe-game"],"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/coding-pelican.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-06-17T09:46:01.000Z","updated_at":"2024-08-04T09:51:13.000Z","dependencies_parsed_at":"2024-12-25T02:41:40.773Z","dependency_job_id":"1417a612-e718-42da-9c3f-0087ef96b0f9","html_url":"https://github.com/coding-pelican/tic-tac-toe-c","commit_stats":null,"previous_names":["coding-pelican/tic-tac-toe-c"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Ftic-tac-toe-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Ftic-tac-toe-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Ftic-tac-toe-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Ftic-tac-toe-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coding-pelican","download_url":"https://codeload.github.com/coding-pelican/tic-tac-toe-c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249060378,"owners_count":21206326,"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":["ascii","c","cli-game","console-based","console-game","game","minimax","minimax-algorithm","minimax-alpha-beta-pruning","terminal-based","terminal-game","tic-tac-toe","tic-tac-toe-game"],"created_at":"2024-11-06T07:17:34.823Z","updated_at":"2025-04-15T11:28:01.482Z","avatar_url":"https://github.com/coding-pelican.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic Tac Toe\n\nThis is an implementation of the classic Tic Tac Toe game in C. The game allows players to play against each other or against an AI opponent.\n\n## Features\n\n- Human vs Human gameplay\n- Human vs AI gameplay\n- AI vs AI gameplay\n- Simple command-line interface\n- Minimax algorithm for AI decision making\n\n## Getting Started\n\n### Prerequisites\n\n- C compiler (e.g., GCC, Clang, or MSVC)\n\n### Building and Running\n\n1. Clone the repository:\n\n```shell\ngit clone https://github.com/coding-pelican/tic-tac-toe-c.git\n```\n\n2. Navigate to the project directory:\n\n```shell\ncd tic-tac-toe-c\n```\n\n3. Compile the source code:\n\n```shell\nclang tic_tac_toe.c -o tic_tac_toe\n```\n\n4. Run the game:\n\n```shell\n./tic_tac_toe\n```\n\n## How to Play\n\n1. Launch the game executable.\n2. From the main menu, select the game mode:\n   - Play with Another Player\n   - Play with A.I.\n   - Watch A.I. game play\n3. Follow the on-screen instructions to make your moves.\n4. The game will display the winner or a draw when the game ends.\n\n## Code Structure\n\nThe source code is organized as follows:\n- `tic_tac_toe.c`: Contains the main game logic, including the game loop, input handling, game state management, and AI decision making.\n- `README.md`: Provides an overview of the game and instructions for building and running the code.\n\n## License\n\nThis project is released under the MIT License. See the [LICENSE](./LICENSE) file for more details.\n\n## Future improvements\n\n- [ ] AI difficulty selection option (Easy, Medium, Hard)\n- [ ] Game statistics tracking (wins, losses, draws)\n- [ ] Game board size selection option (3x3, 4x4, 5x5)\n- [ ] Option to display game board size (3x3, 4x4, 5x5)\n- [ ] Game messages and formatting improvements\n- [ ] Provide localization support for multiple languages\n- [ ] Optimize the codebase further for better performance\n\n## Acknowledgements\n\n- The Minimax algorithm implementation is based on the tutorial by [GeeksforGeeks](https://www.geeksforgeeks.org/minimax-algorithm-in-game-theory-set-1-introduction/).\n\n## Contact\n\nFor any questions or inquiries, please contact the project author:\n- Name: Gyeongtae Kim\n- Email: \u003ccodingpelican@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-pelican%2Ftic-tac-toe-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoding-pelican%2Ftic-tac-toe-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-pelican%2Ftic-tac-toe-c/lists"}