{"id":13709074,"url":"https://github.com/danielpclark/pyc4","last_synced_at":"2025-03-13T17:27:19.241Z","repository":{"id":142007150,"uuid":"56942419","full_name":"danielpclark/pyc4","owner":"danielpclark","description":"PyConnectFour 2003 - My first open source publication.  A Connect Four game.  Nostalgia and painful code reading ;-).  Written before I new OOP using SDL.","archived":false,"fork":false,"pushed_at":"2016-04-23T21:52:35.000Z","size":449,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-23T04:37:42.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/danielpclark.png","metadata":{"files":{"readme":"readme","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"copying","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":"2016-04-23T21:49:50.000Z","updated_at":"2024-08-03T00:02:51.355Z","dependencies_parsed_at":null,"dependency_job_id":"559dd5cf-57e0-4422-bcb0-4feb72f4490d","html_url":"https://github.com/danielpclark/pyc4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fpyc4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fpyc4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fpyc4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fpyc4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielpclark","download_url":"https://codeload.github.com/danielpclark/pyc4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243447642,"owners_count":20292455,"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":[],"created_at":"2024-08-02T23:00:35.659Z","updated_at":"2025-03-13T17:27:19.220Z","avatar_url":"https://github.com/danielpclark.png","language":"Python","funding_links":[],"categories":["First Python"],"sub_categories":[],"readme":"Py Connect Four\r\n===============\r\n\r\nPy Connect Four is a simple connect four game.  The classic!  This is a 2 player game\r\nwhere each player enters their name, then takes turn putting their pieces in trying\r\nto get 4 in a row first.\r\n\r\n\r\nAbout\r\n=====\r\n\r\nThe Version format goes *.* - #.#.#.  Where *.* is the public release version, and #.#.# is the code revision number.\r\n\r\nhttp://www.freshmeat.net/projects/pyc4/\r\n\r\n\r\n\r\n\r\nRequired Packages\r\n=================\r\n\r\nPython 2.0 or later\r\n    http://www.python.org\r\nPyGame 1.2 or later\r\n    http://www.pygame.org\r\n\r\n\r\n\r\nExecution Requirements\r\n======================\r\n\r\nRight now, you'll have to do this on your own, I'll eventually right a script for it.\r\nCopy the files recursively to where ever you would like.  And make a link to the c4.py file.\r\nmake sure the c4.py file has the correct executable in the first line, it should look like\r\n#!/usr/bin/env PYTHONEXECUTABLE\r\nwhere the PYTHONEXECUTABLE is a version of python 2.0 or later and that version of Python MUST\r\nhave PyGame installed.\r\n\r\n\r\n\r\nHow-To\r\n======\r\n\r\nIf the variable on line 1 of c4.py is the correct executable for Python, simply type ./c4.py\r\nto execute.  Other-wise type Python (if this is version 2.0 or later) and then c4.py.  E.G.\r\nPython2 c4.py\r\nYou may also define your own image and/or audio directory.  Where atleast 1 image directory is\r\nrequired an audio directory is not required to run the program.  To set the audio directory to\r\none of you liking, you can type the following\r\n./c4.py -audio myAudioSubDir\r\nor\r\npython2 c4.py -audio myAudioSubDir\r\nand the game will then use the audio files in the directory you provided.  Same thing can be\r\ndone for all of the images in the game, just instead of -audio, type -images and specify your\r\nimage directory.\r\n!!NOTICE!! IF YOU SPECIFY A DIRECTORY FOR EITHER/BOTH IMAGE/AUDIO YOU WILL NEED TO HAVE ALL OF\r\nTHE FILES NAMED AS THE ORIGINAL FILE NAMES IN THAT DIRECTORY, ALL MUST EXIST!  BUT IF YOU\r\nSPECIFY AN AUDIO DIRECTORY THAT DOES NOT EXIST, AUDIO WILL SIMPLY BE DISABLED.\r\nIf you want you can have blank short waves with names of sounds you don't care to hear, just make\r\nsure you have the required sound filess.\r\n\r\nIf you want a complete listing of all images/audio needed, you'll find it in AUDIOFILES and\r\nIMAGEFILES.\r\n\r\nAlso at the command line you can type either help/info for help on the commands available, or info\r\nabout the game/author.\r\n\r\n\r\n\r\nHow-To Game-Play\r\n================\r\n\r\nAt the start, 2 players are required to enter their names.  The first to enter his/her name in will\r\nbe player one, which uses the Black piece in the game.  2nd player uses red.  Black always starts\r\nthe game off.  Once in game play, each player is required to pick up a piece, as the turn happens.\r\nTo pick up a piece you must either hit the space key, ot right click with the mouse.  Then to place\r\nthe picked up piece, you use the left mouse button, dropping it into the column you chose.  Simply\r\nmove the mouse over the column where you'd like to have your piece dropped, then left click there.\r\nThe goal is to get 4 pieces of your color in a row, at any angle.  Once you win/lose, you are given\r\nthe option of starting a new game, or quiting.  If you are to continue, your score is tallied up, and\r\na new game begins.  At any time during the game you may hit escape to chose to quit.\r\n\r\n\r\n\r\nHot-Keys\r\n========\r\n\r\nESCAPE\tgives the option to quit the game\r\nF12\ttakes a snapshot of the game, saves it in the the game directory as screenshot######.bmp\r\nSPACE\tpicks up a pice while in gameplay\r\nY or N\tY for yes in the escape or play-again menus and N for no in the same menus\r\n\r\n\r\nAuthor(s)\r\n=======\r\n\r\nDaniel P. Clark - program\r\nDaniel P. Clark - docs\r\nDaniel P. Clark - website\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielpclark%2Fpyc4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielpclark%2Fpyc4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielpclark%2Fpyc4/lists"}