{"id":19218924,"url":"https://github.com/bearlike/connect-4","last_synced_at":"2025-02-23T09:15:13.961Z","repository":{"id":115884260,"uuid":"160072078","full_name":"bearlike/Connect-4","owner":"bearlike","description":":video_game: Connect Four (also known as 4-in-a-row) is an exciting two-player puzzle connection game recreated with PyGame and Python.","archived":false,"fork":false,"pushed_at":"2021-09-17T13:25:04.000Z","size":493,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-04T19:25:06.575Z","etag":null,"topics":["connect-four","gamespy"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bearlike.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":"2018-12-02T17:28:52.000Z","updated_at":"2021-09-17T13:25:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ac30be0-e49c-4801-ad66-68269609c7ad","html_url":"https://github.com/bearlike/Connect-4","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearlike%2FConnect-4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearlike%2FConnect-4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearlike%2FConnect-4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearlike%2FConnect-4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bearlike","download_url":"https://codeload.github.com/bearlike/Connect-4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240292395,"owners_count":19778311,"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":["connect-four","gamespy"],"created_at":"2024-11-09T14:28:46.313Z","updated_at":"2025-02-23T09:15:13.936Z","avatar_url":"https://github.com/bearlike.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Connect-4\n============\n[![Language](https://img.shields.io/badge/language-python-blue.svg?style=flat\n)](https://www.python.org)\n[![Module](https://img.shields.io/badge/module-pygame-brightgreen.svg?style=flat\n)](http://www.pygame.org/news.html)\n[![Release](https://img.shields.io/badge/release-v1.0-orange.svg?style=flat\n)](https://github.com/KrishnaAlagiri/Connect-4#connect-4)\n\n\nAbout\n-----\nConnect Four is a two-player connection game in which the players first choose a colour and then take turns dropping one coloured disc from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the next available space within the column. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs.\n\n\u003cimg src=\"/src/images/output_2.png\" width=\"360\" height=\"300\"/\u003e\n\n\u003cimg src=\"/src/images/output_1.png\" width=\"394\" height=\"354\"/\u003e\n\nThe board size can be adjusted by changing values of `board_width` and `board_height` in program (default set to 4x6). Similarly, the PyGame window size can be adjusted by changing values of `window_width` and `window_height` (default set to 640x480).\n\nAlso feel free to pass on remarks and suggestions to increase the quality of the code.\n\nPrerequisites\n--------------\nWhat things you need to run the program:\n- Python Compiler (3.7 Recommended)\n- Install **PyGame** from pypi by using the following commands:\n```bash\n  pip install PyGame\n```\n\nHow To Play\n------------\n- If you have the correct version of Python and Pygame installed, you can run the program in the command prompt / terminal.\n ``` bash\ncd connect-4\npython Connect4_Game.py\n ```\n- Drag and drop coins at the column you want to make a move.\n- Use the terminal window to view moments and other details.\n\n**Note:** If you're using Python 3, replace the command \"python\" with \"python3\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearlike%2Fconnect-4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbearlike%2Fconnect-4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearlike%2Fconnect-4/lists"}