{"id":13523026,"url":"https://github.com/tiehuis/2048-cli","last_synced_at":"2025-04-01T00:30:37.159Z","repository":{"id":14959931,"uuid":"17684708","full_name":"tiehuis/2048-cli","owner":"tiehuis","description":"The game 2048 for your Linux terminal (https://github.com/gabrielecirulli/2048)","archived":true,"fork":false,"pushed_at":"2024-01-31T03:35:06.000Z","size":217,"stargazers_count":242,"open_issues_count":10,"forks_count":64,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-08-02T06:14:37.081Z","etag":null,"topics":["2048","ncurses","terminal","terminal-game"],"latest_commit_sha":null,"homepage":null,"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/tiehuis.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":"2014-03-12T21:26:21.000Z","updated_at":"2024-07-13T13:40:17.000Z","dependencies_parsed_at":"2024-04-12T03:50:14.002Z","dependency_job_id":null,"html_url":"https://github.com/tiehuis/2048-cli","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiehuis%2F2048-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiehuis%2F2048-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiehuis%2F2048-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiehuis%2F2048-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiehuis","download_url":"https://codeload.github.com/tiehuis/2048-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222688173,"owners_count":17023297,"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","ncurses","terminal","terminal-game"],"created_at":"2024-08-01T06:00:54.754Z","updated_at":"2024-11-02T07:31:06.727Z","avatar_url":"https://github.com/tiehuis.png","language":"C","funding_links":[],"categories":["C","Table of Contents"],"sub_categories":[],"readme":"# 2048-cli\n\n[![run on repl.it](http://repl.it/badge/github/tiehuis/2048-cli)](https://repl.it/github/tiehuis/2048-cli)\n\nA cli version/engine of the game [2048](https://github.com/gabrielecirulli/2048)=\nfor your Linux terminal.\n\n![Screenshot](http://i.imgur.com/qTfXP4J.png)\n\nThere currently are 2 versions that can be run. This includes a straight-forward\nterminal based version and one using ncurses. To add a new graphical interface,\nsimply create a .c file which implements all the functions in gfx.h and add a\nMakefile entry.\n\n### Get\n    git clone https://github.com/tiehuis/2048-cli.git\n    make\n\nBy default, termios.h is expected to be present for the standard terminal\nversion, and a VT100 compatible terminal is being used. If a VT100 terminal is\nnot available, simply alter the makefile and remove the '-DVT100' flag.\nCompiling with ncurses requires the development libraries for it.\n\nOn an ubuntu/debian machine for example, these can be obtained via\n\n```\napt-get install libncurses5-dev\n```\n\nYou can also also easily install this on el \u003e= 5 (CentOS, RedHat Enterprise Linux,\nScientific Linux, Oracle) and Fedora \u003e= 19 using the package-manager:\n\n```\nsudo yum install 2048-cli[-nocurses]\n```\n\nFor el you will need to have the\n[EPEL-repository](https://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F)\nenabled.\n\n## Controls\n    hjkl and wasd  Default movement keys\n    q              Quit the current game\n\n## Options\n    -h             Print the program usage.\n    -H             Print the current highscore.\n    -C             Disable color support (default).\n    -c             Enable color support if supported.\n    -a             Enable animations (default).\n    -A             Disable animations.\n    -i             Enable ai without displaying game.\n    -I             Enable ai and display game.\n    -r             Reset highscore. Will prompt user.\n    -s SIZE        Set the size of the playing field.\n    -b RATE        Set the rate at which blocks spawn per turn.\n\n## License\nThis code is licensed under the\n[MIT License](https://github.com/Tiehuis/2048-cli/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiehuis%2F2048-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiehuis%2F2048-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiehuis%2F2048-cli/lists"}