{"id":16342976,"url":"https://github.com/frost-phoenix/2048-cli","last_synced_at":"2025-03-20T23:32:00.838Z","repository":{"id":213923456,"uuid":"735149608","full_name":"Frost-Phoenix/2048-cli","owner":"Frost-Phoenix","description":"🕹️ 2048 clone that run in the terminal","archived":false,"fork":false,"pushed_at":"2024-01-05T17:52:49.000Z","size":1285,"stargazers_count":24,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-02-13T02:47:05.159Z","etag":null,"topics":["2048","2048-clone","2048-game","c","cli","game","linux","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/Frost-Phoenix.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":"2023-12-23T20:57:37.000Z","updated_at":"2024-02-02T19:10:55.000Z","dependencies_parsed_at":"2024-10-11T00:05:47.518Z","dependency_job_id":"3936613b-ddbe-4899-9f24-9cc879092a37","html_url":"https://github.com/Frost-Phoenix/2048-cli","commit_stats":null,"previous_names":["frost-phoenix/2048-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frost-Phoenix%2F2048-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frost-Phoenix%2F2048-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frost-Phoenix%2F2048-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frost-Phoenix%2F2048-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frost-Phoenix","download_url":"https://codeload.github.com/Frost-Phoenix/2048-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244711295,"owners_count":20497409,"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","2048-clone","2048-game","c","cli","game","linux","terminal-game"],"created_at":"2024-10-11T00:05:46.059Z","updated_at":"2025-03-20T23:32:00.545Z","avatar_url":"https://github.com/Frost-Phoenix.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2048 Terminal Game\n\nA simple implementation of the classic 2048 game in C made for GNU/Linux, designed to run in the terminal.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\".github/assets/gameplay.gif\" width=\"350\" alt=\"Gameplay Gif\"\u003e\n\u003c/p\u003e\n\n## Table of Contents\n\n- [Features](#features)\n- [How to Play](#how-to-play)\n- [Requirements](#requirements)\n- [Build and Run](#build-and-run)\n- [Install](#install)\n- [Uninstall](#uninstall)\n- [Credits](#credits)\n- [License](#license)\n\n## Features\n\n- Classic 2048 gameplay in the terminal.\n- Responsive arrow key controls.\n- Score tracking.\n- Ability to undo one move.\n\n## How to Play\n\nThe goal of the game is to combine number tiles by moving them in different directions using arrow keys, with the objective of reaching the tile with the value of 2048. When two tiles with the same value collide during a move, they merge into a new tile with the sum of their values. After each move, a new tile (either 2 or 4) will appear in an empty spot on the board. The game continues until there are no empty spots left on the board, and the player can no longer make valid moves, resulting in the game coming to an end.\n\n## Requirements\n\n- GNU Make\n- C compiler (GCC or Clang)\n\nTested on: GNU/Linux, NixOs, Ubuntu, PopOs\n\n## Build and Run\n\n1. Clone the repository:\n2. Navigate to the project directory:\n    ```bash\n    git clone https://github.com/Frost-Phoenix/2048-cli.git\n    cd 2048-cli\n    ```\n3. Build then run the game:\n    ```bash\n    make\n    ./bin/2048\n    ```\n - Or build and run with:\n\n    ```bash\n    make run\n    ```\n5. Use arrow keys to play, and enjoy the game!\n\n## Install\n\nTo install the game and make it available system-wide, use the following commands:\n\n```bash\nsudo make install\n```\nThe game will be installed in the default location (/usr/local/bin). If you wish to install it in a different location, modify the INSTALL_DIR variable in the Makefile before running the install command.\n\n## Uninstall\n\nTo uninstall the game, use the following command:\n\n```bash\nsudo make uninstall\n```\nThis will remove the game executable form the INSTALL_DIR.\n\n## Credits\n\nThis project is inspired by and incorporates ideas from the following project:\n\n- [mevdschee/2048.c](https://github.com/mevdschee/2048.c)\n- [alewmoose/2048-in-terminal](https://github.com/alewmoose/2048-in-terminal)\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrost-phoenix%2F2048-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrost-phoenix%2F2048-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrost-phoenix%2F2048-cli/lists"}