{"id":20898792,"url":"https://github.com/alyyousuf7/twenty48","last_synced_at":"2025-06-15T14:37:03.008Z","repository":{"id":57544565,"uuid":"131585247","full_name":"alyyousuf7/twenty48","owner":"alyyousuf7","description":"2048 game on CLI","archived":false,"fork":false,"pushed_at":"2020-02-17T11:27:28.000Z","size":59,"stargazers_count":53,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T14:58:09.961Z","etag":null,"topics":["2048","2048-game","cli","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/alyyousuf7.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}},"created_at":"2018-04-30T10:59:17.000Z","updated_at":"2024-07-03T03:49:40.000Z","dependencies_parsed_at":"2022-08-27T05:13:20.888Z","dependency_job_id":null,"html_url":"https://github.com/alyyousuf7/twenty48","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyyousuf7%2Ftwenty48","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyyousuf7%2Ftwenty48/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyyousuf7%2Ftwenty48/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyyousuf7%2Ftwenty48/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alyyousuf7","download_url":"https://codeload.github.com/alyyousuf7/twenty48/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253853741,"owners_count":21974163,"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-game","cli","golang"],"created_at":"2024-11-18T11:12:13.554Z","updated_at":"2025-05-13T01:31:07.333Z","avatar_url":"https://github.com/alyyousuf7.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twenty48\n[![CircleCI](https://circleci.com/gh/alyyousuf7/twenty48.svg?style=shield)](https://circleci.com/gh/alyyousuf7/twenty48) [![codecov](https://codecov.io/gh/alyyousuf7/twenty48/branch/master/graph/badge.svg)](https://codecov.io/gh/alyyousuf7/twenty48)\n\nPlay 2048 from CLI\n\n![2048 on CLI](https://user-images.githubusercontent.com/14050128/39704165-f1c7654a-5223-11e8-87fc-66ddc9ae2977.gif)\n\nUse up, down, left and right arrow keys to play, and `ESC` to quit.\n\nThe default grid size is `8x8` which can be changed be setting `-width` and `-height` flags.\n\n```bash\n$ twenty48 [-width=8] [-height=8]\n```\n\n## Install\nRequires Golang:\n```bash\n$ go get -u github.com/alyyousuf7/twenty48/cmd/twenty48\n```\n\n## Development\nOn host machine with Golang installed:\n```bash\n$ make test   # execute test\n$ make binary # build the executable in bin/\n```\n\nOr using Docker:\n```bash\n$ make shell  # jump into a container\nroot@container:/twenty48# make test\nroot@container:/twenty48# make binary\nroot@container:/twenty48# exit\n```\n\nThe Docker container mounts a volume to `bin/` to copy executable to host machine.\n\n## TODOs\n- [ ] Write more tests\n- [ ] Maintain scoreboard\n- [ ] Display game over text\n\nPRs are most welcome!\n\n## License\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falyyousuf7%2Ftwenty48","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falyyousuf7%2Ftwenty48","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falyyousuf7%2Ftwenty48/lists"}