{"id":17095655,"url":"https://github.com/meyfa/2048-solver-bookmarklet","last_synced_at":"2026-04-16T05:34:15.776Z","repository":{"id":68200420,"uuid":"100805336","full_name":"meyfa/2048-Solver-Bookmarklet","owner":"meyfa","description":"JavaScript bookmarklet that solves the original 2048 game.","archived":false,"fork":false,"pushed_at":"2017-09-09T17:24:20.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T17:49:01.721Z","etag":null,"topics":["2048-game","bookmarklet","bot","solver"],"latest_commit_sha":null,"homepage":"https://meyfa.net/projects/2048-solver-bookmarklet","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meyfa.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},"funding":{"github":"meyfa"}},"created_at":"2017-08-19T16:03:27.000Z","updated_at":"2022-05-03T19:06:43.000Z","dependencies_parsed_at":"2023-04-07T15:04:20.154Z","dependency_job_id":null,"html_url":"https://github.com/meyfa/2048-Solver-Bookmarklet","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/meyfa/2048-Solver-Bookmarklet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyfa%2F2048-Solver-Bookmarklet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyfa%2F2048-Solver-Bookmarklet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyfa%2F2048-Solver-Bookmarklet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyfa%2F2048-Solver-Bookmarklet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meyfa","download_url":"https://codeload.github.com/meyfa/2048-Solver-Bookmarklet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyfa%2F2048-Solver-Bookmarklet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31872656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-game","bookmarklet","bot","solver"],"created_at":"2024-10-14T14:43:27.908Z","updated_at":"2026-04-16T05:34:15.753Z","avatar_url":"https://github.com/meyfa.png","language":"JavaScript","funding_links":["https://github.com/sponsors/meyfa"],"categories":[],"sub_categories":[],"readme":"# 2048 Solver Bookmarklet\n\nThe code in this repository is the implementation of a heuristic algorithm\nthat automates winning Gabriele Cirulli's game\n[2048](https://gabrielecirulli.github.io/2048/).\n\nIt does so by recursively analyzing the tree of possible moves given the\ncurrent board, selecting the move where a certain heuristic score turns out\nmaximal. The heuristic favors fewer tiles, monotone rows and columns, and having\nhigher values near the corners instead of the center.\n\nThis implementation is not a fork of the original game code; instead it runs as\na Bookmarklet, which means the code is injected into the page in real-time.\nIt features a basic UI for starting and stopping execution.\n\n## Usage\n\nVisit http://meyfa.net/projects/2048-solver-bookmarklet for the bookmarkable\nscript link and usage guidelines.\n\n## Building\n\nBuilding this project requires [Node](https://nodejs.org) to be installed.\nMoreover, you need to have Gulp (`npm install -g gulp`).\n\nAfter cloning this repository, run `npm install` to set up its dependencies.\nThen it can be compiled (built) by running `gulp`, after which the `target`\ndirectory will contain the minified loader as well as the minified solver\nscript.\n\n## Tests\n\nThe unit tests in this project use Mocha's web interface. First, build this\nproject. Then, open `test/index.html` in your favorite browser. The tests should\nstart running automatically.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeyfa%2F2048-solver-bookmarklet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeyfa%2F2048-solver-bookmarklet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeyfa%2F2048-solver-bookmarklet/lists"}