{"id":19396082,"url":"https://github.com/msalman81/2048","last_synced_at":"2026-05-06T13:32:51.021Z","repository":{"id":99641443,"uuid":"195190307","full_name":"msalman81/2048","owner":"msalman81","description":"One of everyone's favorite classics! A practice for me to work with Javascript DOM and Bootstrap and relate to UI/UX elements!","archived":false,"fork":false,"pushed_at":"2019-07-04T07:46:39.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T10:13:06.025Z","etag":null,"topics":["2048-clone","bootstrap","css","dom","game","html","javascript","moazzam","moazzamsalman","ui-design","ux-design","webdesigning"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msalman81.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-07-04T07:23:42.000Z","updated_at":"2022-03-26T03:04:32.000Z","dependencies_parsed_at":"2023-07-31T10:16:08.063Z","dependency_job_id":null,"html_url":"https://github.com/msalman81/2048","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msalman81%2F2048","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msalman81%2F2048/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msalman81%2F2048/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msalman81%2F2048/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msalman81","download_url":"https://codeload.github.com/msalman81/2048/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240564604,"owners_count":19821422,"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-clone","bootstrap","css","dom","game","html","javascript","moazzam","moazzamsalman","ui-design","ux-design","webdesigning"],"created_at":"2024-11-10T10:33:29.666Z","updated_at":"2026-05-06T13:32:50.957Z","avatar_url":"https://github.com/msalman81.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2048\nThe game is extremely simplistic, you just press the WASD keys to move the tiles around, In a single move all the tiles move in that\nspecific direction. If the tiles have similar values and are moved in the same direction then they combine and form a number that is\ntwice the numbers merging. If you run out of moves then gameOver else if you make the number 2048 then that is the winning point of the\ngame.\n\nA key thing for me in this game was the javascript DOM manipulation and I used a similar approach of making those tiles as array elements\nand accessed them accordingly with the javascript DOM. The colors change and get more intense as the number merged grow larger and there\nare score and highscore elements present in the game. The files have proper commenting if some help is needed to understand the code.\n\nRun Instructions: You can either download the files and open index.html with a browser, or you can access this link to play the game \nonline: https://msalman81.github.io/2048/\n\nHere is a sneakpeak from the game!\n![Capture](https://user-images.githubusercontent.com/46281169/60648349-33368600-9e59-11e9-98aa-ff9a807d1d08.PNG)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsalman81%2F2048","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsalman81%2F2048","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsalman81%2F2048/lists"}