{"id":19417759,"url":"https://github.com/chriskempson/cpp-connect-four","last_synced_at":"2025-10-26T08:16:05.206Z","repository":{"id":140674994,"uuid":"91385937","full_name":"chriskempson/cpp-connect-four","owner":"chriskempson","description":"A game of Connect Four created in C++ with (SDL) Simple DirectMedia Layer.","archived":false,"fork":false,"pushed_at":"2017-11-10T19:40:26.000Z","size":167,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T06:40:53.707Z","etag":null,"topics":["cpp","game","sdl2"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chriskempson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2017-05-15T21:20:27.000Z","updated_at":"2021-09-30T21:40:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"92eb1394-dd24-47b3-bb18-32af83bd3b48","html_url":"https://github.com/chriskempson/cpp-connect-four","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/chriskempson/cpp-connect-four","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriskempson%2Fcpp-connect-four","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriskempson%2Fcpp-connect-four/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriskempson%2Fcpp-connect-four/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriskempson%2Fcpp-connect-four/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chriskempson","download_url":"https://codeload.github.com/chriskempson/cpp-connect-four/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriskempson%2Fcpp-connect-four/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281074774,"owners_count":26439531,"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","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","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":["cpp","game","sdl2"],"created_at":"2024-11-10T13:11:14.295Z","updated_at":"2025-10-26T08:16:05.172Z","avatar_url":"https://github.com/chriskempson.png","language":"C++","readme":"# Connect Four\n![Connect Four Game Capture](connect_four_game_capture.gif)\n\n## About\nA game of [Connect Four](https://en.wikipedia.org/wiki/Connect_Four) created by [Chris Kempson](http://chriskempson.com/) in C++ with [Simple DirectMedia Layer version 2](https://www.libsdl.org/).\n\nThis code in this game is largely identical to my previous project [Tic-tac-toe](https://github.com/chriskempson/cpp-tic-tac-toe) due to the similarity of the two games and the fact that I had Connect Four in mind when I was building Tic-tac-toe as the next project I'd like to complete. \n\n## How to Play\nThis is a two player game. Clicking the mouse on the title screen will advance to the play screen. To place a piece on the grid click the mouse in the desired grid area. Once a win or draw message is display, clicking again will return to the title screen.\n\n## Compiling\n\n### Windows (Visual Studio)\nDownload [SDL2-devel-2.0.4-VC.zip](https://www.libsdl.org/release/SDL2-devel-2.0.4-VC.zip) and [SDL2_mixer-devel-2.0.1-VC.zip](https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.1-VC.zip) and extract both to a location on your computer you'll use for storing libraries.\n\nSetup an environment variable called `CPP_LIBS` and enter the location where you extracted SDL2 and SDL2_mixer.\n\nFinally, copy `SDL.dll` from `SDL2-2.0.4\\lib\\x86` and from `SDL2_mixer-2.0.1\\lib\\x86` to the `Debug` and/or `Release` folders (created after you try to compile a debug or release version respectively.\n\n### Linux\nUse your package manager to install SDL2 and SDL2mixer e.g. `apt-get install libsdl2-dev libsdl2-mixer-dev` for Ubuntu/Debian or `yum install SDL2-devel SDL2_mixer-devel` for Fedora/CentOS.\n\nNext run `make` to compile. Once finished you can run `make run` to start the application. If you would like to install the application, run `make install` with elevated privileges e.g. `sudo make install`. Finally, running `make uninstall` with elevated privileges can be used to uninstall the application.\n\n## Assets\nAll sounds were created with [DefleMask Tracker](http://deflemask.com/) using Nintendo Game boy sound chip emulation. All images were created with the venerable [Microsoft Paint](https://en.wikipedia.org/wiki/Microsoft_Paint).\n\n## Change Log\nPlease see [CHANGELOG.md](CHANGELOG.md).\n\n## Licences\nPlease see [LICENCE.md](LICENCE.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriskempson%2Fcpp-connect-four","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchriskempson%2Fcpp-connect-four","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriskempson%2Fcpp-connect-four/lists"}