{"id":23289365,"url":"https://github.com/tarrycarrot7309/tictactoe-with-ai-cpp","last_synced_at":"2026-02-16T10:37:31.084Z","repository":{"id":261293494,"uuid":"883858534","full_name":"TarryCarrot7309/TicTacToe-with-AI-CPP","owner":"TarryCarrot7309","description":"A Tic-tac-toe/X and O game with AI and a player vs player mode. It features a sleek UI and Modern design built with C++ using the QT framework for desktop apps.","archived":false,"fork":false,"pushed_at":"2024-12-16T15:04:38.000Z","size":26072,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-16T15:50:22.684Z","etag":null,"topics":["ai","cpp","minimax-algorithm","qt","tic-tac-toe"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TarryCarrot7309.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-11-05T17:40:01.000Z","updated_at":"2024-12-16T15:04:41.000Z","dependencies_parsed_at":"2024-11-05T19:49:50.288Z","dependency_job_id":null,"html_url":"https://github.com/TarryCarrot7309/TicTacToe-with-AI-CPP","commit_stats":null,"previous_names":["tarrycarrot7309/tictactoe-with-ai-cpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TarryCarrot7309%2FTicTacToe-with-AI-CPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TarryCarrot7309%2FTicTacToe-with-AI-CPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TarryCarrot7309%2FTicTacToe-with-AI-CPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TarryCarrot7309%2FTicTacToe-with-AI-CPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TarryCarrot7309","download_url":"https://codeload.github.com/TarryCarrot7309/TicTacToe-with-AI-CPP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230532452,"owners_count":18240792,"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":["ai","cpp","minimax-algorithm","qt","tic-tac-toe"],"created_at":"2024-12-20T04:14:12.032Z","updated_at":"2025-10-05T16:18:27.155Z","avatar_url":"https://github.com/TarryCarrot7309.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qt Tic-Tac-Toe with AI\n\nA modern implementation of the classic Tic-Tac-Toe game built with Qt, featuring both Player vs Player and Player vs AI modes. The AI opponent uses the Minimax algorithm to make optimal moves.\n\n![Game Screenshot](screenshot.png)\n\n\n## Features\n\n- Clean and intuitive user interface\n- Two game modes:\n  - Player vs Player\n  - Player vs AI\n- Unbeatable AI using the Minimax algorithm\n- Modern flat design with hover effects\n- Instant visual feedback\n- Game state tracking\n- Easy restart functionality\n\n## Technical Details\n\n### AI Implementation\nThe game implements the Minimax algorithm for the AI opponent, making it effectively unbeatable. The AI:\n- Evaluates all possible future moves\n- Assumes optimal play from both players\n- Chooses the move that maximizes its chances of winning while minimizing the opponent's chances\n\n### User Interface\n- Built with Qt 6\n- Responsive grid layout\n- Custom styled buttons with hover effects\n- Clear game state indicators\n- Smooth transitions between moves\n\n## Building from Source\n\n### Prerequisites\n- Qt 6.x\n- C++ compiler with C++11 support\n- Qt Creator (recommended) or CMake\n\n### Build Steps\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/YOUR_USERNAME/tictactoe-qt.git\ncd tictactoe-qt\n```\n\n2. Open in Qt Creator:\n- Open Qt Creator\n- File -\u003e Open File or Project\n- Select the `.pro` file\n- Configure project\n- Click Build\n\n### Manual Build\n```bash\nqmake\nmake\n```\n\n## Project Structure\n\n```\ntictactoe-qt/\n├── src/\n│   ├── main.cpp\n│   ├── mainwindow.cpp\n│   ├── mainwindow.h\n│   └── mainwindow.ui\n├── resources/\n│   ├── x.png\n│   └── o.png\n├── README.md\n└── tictactoe.pro\n```\n\n## Usage\n\n1. Launch the application\n2. Choose game mode:\n   - Click \"Play vs AI\" button to play against the AI\n   - Click \"Play vs Player\" for two-player mode\n3. Make moves by clicking on the grid\n4. Use \"Restart Game\" to start a new game\n5. Switch modes at any time using the toggle button\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Qt Framework\n- Minimax Algorithm implementation inspired by classic game theory\n## License\n\nThis project is licensed under the [GNU Lesser General Public License v3.0 (LGPL-3.0)](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarrycarrot7309%2Ftictactoe-with-ai-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarrycarrot7309%2Ftictactoe-with-ai-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarrycarrot7309%2Ftictactoe-with-ai-cpp/lists"}