{"id":21464290,"url":"https://github.com/marcpinet/connect4-ai","last_synced_at":"2026-02-25T02:31:27.210Z","repository":{"id":65943804,"uuid":"601836635","full_name":"marcpinet/connect4-ai","owner":"marcpinet","description":"🤖 A simple and extensible Connect4 with graphical user interface where you can play against an AI.","archived":false,"fork":false,"pushed_at":"2025-02-01T19:31:17.000Z","size":71,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T17:13:55.892Z","etag":null,"topics":["ai","cmake","connect-four","cpp","minimax-alpha-beta-pruning","sfml"],"latest_commit_sha":null,"homepage":"https://marcpinet.me","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/marcpinet.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-02-14T23:33:25.000Z","updated_at":"2025-02-01T19:31:21.000Z","dependencies_parsed_at":"2024-02-18T01:37:18.280Z","dependency_job_id":"eab8cb0b-4910-47b5-9839-1cd1552edfc5","html_url":"https://github.com/marcpinet/connect4-ai","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/marcpinet/connect4-ai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcpinet%2Fconnect4-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcpinet%2Fconnect4-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcpinet%2Fconnect4-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcpinet%2Fconnect4-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcpinet","download_url":"https://codeload.github.com/marcpinet/connect4-ai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcpinet%2Fconnect4-ai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29809086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T22:43:48.403Z","status":"online","status_checked_at":"2026-02-25T02:00:07.329Z","response_time":61,"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":["ai","cmake","connect-four","cpp","minimax-alpha-beta-pruning","sfml"],"created_at":"2024-11-23T07:31:11.952Z","updated_at":"2026-02-25T02:31:27.183Z","avatar_url":"https://github.com/marcpinet.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connect4 AI \n\n## 📝 Description\n\nA simple Connect4 made with C++ and SFML for the window.\nCurrently, only the Minimax with Alpha Beta Pruning is implemented. \nMaybe, in the future, I'll implement other algorithms if I want to (such as MCTS?).\n\n## 🎥 Demo Minimax with Alpha Beta Pruning\n\nhttps://user-images.githubusercontent.com/52708150/219687697-d5a2e5b7-3d84-40cd-907d-4ee64157e32d.mp4\n\n## 💡 How to use\n\n### 🪟 Windows\n\nIf you've a C/C++ IDE, you should already have `cmake` and `gcc`/`g++`. If not, then install CMake [here](https://cmake.org/download/) and gcc/g++ [here](https://www.devdungeon.com/content/install-gcc-compiler-windows-msys2-cc).\n\n1. Clone the repository \n```bash\ngit clone https://github.com/marcpinet/connect4-ai\n```\n\n2. Initialize the SFML submodule\n\n```bash\ngit submodule update --init --recursive\n```\n\n3. Build with CMake\n\n```bash\ncmake -S . -B output -DCMAKE_BUILD_TYPE=Release -G\"MinGW Makefiles\"\n```\n\n4. Build the project using make inside the newly created output folder\n\n```bash\ncd output \u0026\u0026 make\n```\n\n5. Run the `.exe`\n\n### 🐧 Linux / WSL\n\n1. Run the holy command\n\n```bash\nsudo apt-get update\n```\n\n2. Install the following packages\n\n```bash\nsudo apt install libsfml-dev gdb cmake build-essential libvorbis-dev libopenal-dev freetype2-demos libudev-dev libx11-dev libxrandr-dev\n```\n\n3. Clone the repository\n\n```bash\ngit clone https://github.com/marcpinet/connect4-ai\n```\n\n4. Initialize the SFML submodule\n\n```bash\ngit submodule update --init --recursive\n```\n\n5. Build with CMake\n\n```bash\ncmake -S . -B output -DCMAKE_BUILD_TYPE=Release\n```\n\n6. Build the project using make inside the newly created output folder\n\n```bash\ncd output \u0026\u0026 cp -r ../assets assets \u0026\u0026 make\n```\n\n7. Run the file!\n\n```bash\nchmod u+x Connect4_AI \u0026\u0026 ./Connect4_AI\n```\n\n## 📄 Note\n\nOn Windows, it will probably be easier to run the project using an IDE such as [CLion](https://www.jetbrains.com/clion/).\n\nNo cache issue.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcpinet%2Fconnect4-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcpinet%2Fconnect4-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcpinet%2Fconnect4-ai/lists"}