{"id":20151905,"url":"https://github.com/soham2002/connect4","last_synced_at":"2026-02-06T03:32:38.552Z","repository":{"id":219165647,"uuid":"748346335","full_name":"soham2002/Connect4","owner":"soham2002","description":"This project provides a dual experience of Connect Four: a classic terminal-based version and an interactive graphical version using the pygame library.","archived":false,"fork":false,"pushed_at":"2024-04-19T11:33:13.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T18:40:17.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/soham2002.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}},"created_at":"2024-01-25T19:28:47.000Z","updated_at":"2024-10-18T18:24:04.000Z","dependencies_parsed_at":"2025-01-13T11:46:29.083Z","dependency_job_id":null,"html_url":"https://github.com/soham2002/Connect4","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"5e222f8cf47d3515b8cf466c100e994b8021472e"},"previous_names":["soham2002/connect4"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soham2002/Connect4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soham2002%2FConnect4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soham2002%2FConnect4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soham2002%2FConnect4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soham2002%2FConnect4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soham2002","download_url":"https://codeload.github.com/soham2002/Connect4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soham2002%2FConnect4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29148177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-13T23:07:55.244Z","updated_at":"2026-02-06T03:32:38.533Z","avatar_url":"https://github.com/soham2002.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connect4 Game Project\n\nWelcome to the Connect4 Game project! This project includes two files - `connect4.py` and `Connect4GUI.py` - providing both a simple terminal-based version and a graphical user interface (GUI) version of the classic Connect Four game.\n\n## connect4.py\n\n### Description\n`connect4.py` is a simple implementation of Connect Four in the terminal. The game board is represented as a 6x7 matrix, where Player 1 is represented by the token '1', and Player 2 is represented by the token '2'. Players take turns to drop their tokens into columns, aiming to connect four of their tokens either horizontally, vertically, or diagonally.\n\n### How to Play\n1. Run the script: `python connect4.py`\n2. Enter the column number where you want to drop your token.\n3. Alternate turns between Player 1 and Player 2.\n4. The first player to connect four tokens in a row wins!\n\n## Connect4GUI.py\n\n### Description\n`Connect4GUI.py` is a graphical version of Connect Four implemented using the pygame library. This version features a visual dialog box where Player 1 plays with Red Tokens, and Player 2 plays with Yellow Tokens. The GUI enhances the gaming experience with a more interactive and visually appealing interface.\n\n### How to Play\n1. Run the script: `python Connect4GUI.py`\n2. Click on the column where you want to drop your token.\n3. Players take turns clicking, and the game continues until there's a winner or a draw.\n4. Enjoy the graphical representation of the classic Connect Four game.\n\n### Requirements\n- Python 3.x\n- Pygame library (install using `pip install pygame`)\n\nFeel free to explore and modify the code to enhance the game or add new features. Happy gaming!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoham2002%2Fconnect4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoham2002%2Fconnect4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoham2002%2Fconnect4/lists"}