{"id":25019648,"url":"https://github.com/djeada/pong-curses","last_synced_at":"2025-06-26T21:33:12.867Z","repository":{"id":242858028,"uuid":"456003999","full_name":"djeada/Pong-Curses","owner":"djeada","description":"This is a simple ncurses-based game written in C. The game involves controlling paddles to hit a ball back and forth, similar to Pong.","archived":false,"fork":false,"pushed_at":"2024-06-05T09:13:49.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T10:11:39.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/djeada.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}},"created_at":"2022-02-05T22:47:35.000Z","updated_at":"2024-06-05T09:16:06.000Z","dependencies_parsed_at":"2024-06-05T11:53:19.242Z","dependency_job_id":"c936b9dc-44bf-4367-870d-2bdcaabd5b0d","html_url":"https://github.com/djeada/Pong-Curses","commit_stats":null,"previous_names":["djeada/pong-curses"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/djeada/Pong-Curses","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djeada%2FPong-Curses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djeada%2FPong-Curses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djeada%2FPong-Curses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djeada%2FPong-Curses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djeada","download_url":"https://codeload.github.com/djeada/Pong-Curses/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djeada%2FPong-Curses/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262145147,"owners_count":23265876,"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":"2025-02-05T11:51:20.988Z","updated_at":"2025-06-26T21:33:12.843Z","avatar_url":"https://github.com/djeada.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pong-curses\n\nThis is a simple ncurses-based game written in C. The game involves controlling paddles to hit a ball back and forth, similar to Pong.\n\n![Peek 2024-06-05 11-10](https://github.com/djeada/Pong-Curses/assets/37275728/3add03c8-3a09-4fb8-a9cc-7791651aea1e)\n\n## Directory Structure\n\n```\n.\n├── Makefile\n└── src\n    ├── main.c\n    ├── game.c\n    └── game.h\n```\n\n## Files\n\n- **Makefile**: Builds the project.\n- **README.md**: This file, containing project information.\n- **src/main.c**: Contains the main function and game loop.\n- **src/game.c**: Contains the game logic and functions.\n- **src/game.h**: Contains the declarations for the game functions and structures.\n\n## Prerequisites\n\n- gcc (GNU Compiler Collection)\n- ncurses library\n\n## Building the Project\n\nTo build the project, follow these steps:\n\n1. Ensure you have `gcc` and `ncurses` installed on your system.\n2. Open a terminal in the parent directory where the `Makefile` is located.\n3. Run the following command:\n\n ```sh\n make\n```\n\nThis will compile the source files and create an executable in the bin directory.\n\n### Running the Game\n\nAfter building the project, you can run the game by executing the following command in the terminal:\n\n```sh\n./bin/game\n```\n\n### Cleaning Up\n\nTo remove the compiled files, run:\n\n```sh\nmake clean\n```\n\n## Controls\n\n- Up Arrow: Move the left paddle up\n- Down Arrow: Move the left paddle down\n- q: Move the right paddle up\n- a: Move the right paddle down\n- p: Pause the game\n- Esc: Exit the game\n\n## How to Contribute\n\nWe encourage contributions that enhance the repository's value. To contribute:\n\n1. Fork the repository.\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`).\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`).\n4. Push to the branch (`git push origin feature/AmazingFeature`).\n5. Open a Pull Request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE) - see the LICENSE file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjeada%2Fpong-curses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjeada%2Fpong-curses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjeada%2Fpong-curses/lists"}