{"id":15735189,"url":"https://github.com/coding-pelican/game2048-c","last_synced_at":"2025-07-11T03:33:15.416Z","repository":{"id":257083859,"uuid":"857280108","full_name":"coding-pelican/game2048-c","owner":"coding-pelican","description":"Implementation of the classic 2048 game in C","archived":false,"fork":false,"pushed_at":"2024-09-15T07:38:52.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T03:47:03.722Z","etag":null,"topics":["2048","ascii","ascii-game","c","cli","cli-game","console","console-based","console-game","game","game-2048","terminal","terminal-based","terminal-game"],"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/coding-pelican.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":"2024-09-14T08:23:47.000Z","updated_at":"2024-09-16T09:32:41.000Z","dependencies_parsed_at":"2024-10-25T00:15:53.929Z","dependency_job_id":"5805177c-8b7e-4a45-a7f3-c6836f195991","html_url":"https://github.com/coding-pelican/game2048-c","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"900a6338618a8d6a5983117cbe8a507b68c94537"},"previous_names":["coding-pelican/game2048-c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coding-pelican/game2048-c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Fgame2048-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Fgame2048-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Fgame2048-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Fgame2048-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coding-pelican","download_url":"https://codeload.github.com/coding-pelican/game2048-c/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Fgame2048-c/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264721525,"owners_count":23653949,"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":["2048","ascii","ascii-game","c","cli","cli-game","console","console-based","console-game","game","game-2048","terminal","terminal-based","terminal-game"],"created_at":"2024-10-04T01:10:45.114Z","updated_at":"2025-07-11T03:33:15.387Z","avatar_url":"https://github.com/coding-pelican.png","language":"C","readme":"# Game 2048\n\nThis is an implementation of the classic 2048 game in C. The game is played in the console window and features the iconic sliding and merging of numbered tiles.\n\n## Features\n\n- Classic 2048 gameplay with console-based interface\n- Player control using WASD keys\n- Random tile generation\n- Game over detection\n\n## Getting Started\n\n### Prerequisites\n\n- C compiler (e.g., GCC, Clang, or MSVC)\n\n### Building and Running\n\n1. Clone the repository:\n\n```shell\ngit clone https://github.com/coding-pelican/game2048-c.git\n```\n\n2. Navigate to the project directory:\n\n```shell\ncd game2048-c\n```\n\n3. Compile the source code:\n\n```shell\nclang main.c game2048.c -o game2048\n```\n\n4. Run the game:\n\n```shell\n./game2048\n```\n\n## Gameplay\n\n- Use the WASD keys to move the tiles:\n  - W: Move up\n  - A: Move left\n  - S: Move down\n  - D: Move right\n- Merge tiles with the same number to create larger numbers\n- The game ends when no more moves are possible\n\n## Code Structure\n\nThe project consists of the following files:\n\n- `main.c`: The main entry point of the program\n- `game2048.c`: The main game logic and rendering code\n- `game2048.h`: Header file containing function declarations and constants\n- `random.h`: Header file for random number generation\n- `README.md`: This readme file providing an overview of the project\n\n## Future Improvements\n\n- Add score tracking\n- Implement high score system\n- Add color support for better visualization\n- Implement undo functionality\n- Add game board size selection option\n\n## License\n\nThis project is released under the MIT License. See the [LICENSE](README.md) file for more details.\n\n## Contributing\n\nContributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a\npull request.\n\n## Contact\n\nFor any questions or inquiries, please contact the project author:\n- Name: Gyeongtae Kim\n- Email: \u003ccodingpelican@gmail.com\u003e\n\nEnjoy playing 2048!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-pelican%2Fgame2048-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoding-pelican%2Fgame2048-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-pelican%2Fgame2048-c/lists"}