{"id":13804123,"url":"https://github.com/wenxuanjun/2048","last_synced_at":"2026-04-09T00:11:36.336Z","repository":{"id":169066095,"uuid":"644522835","full_name":"wenxuanjun/2048","owner":"wenxuanjun","description":"Some AI that that play 2048!","archived":false,"fork":false,"pushed_at":"2024-07-26T14:40:51.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-05T01:10:56.310Z","etag":null,"topics":["2048","traditional-ai"],"latest_commit_sha":null,"homepage":"","language":"V","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/wenxuanjun.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}},"created_at":"2023-05-23T17:38:43.000Z","updated_at":"2024-07-26T14:50:40.000Z","dependencies_parsed_at":"2024-01-10T11:35:53.428Z","dependency_job_id":null,"html_url":"https://github.com/wenxuanjun/2048","commit_stats":null,"previous_names":["wenxuanjun/2048"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenxuanjun%2F2048","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenxuanjun%2F2048/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenxuanjun%2F2048/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenxuanjun%2F2048/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wenxuanjun","download_url":"https://codeload.github.com/wenxuanjun/2048/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225247831,"owners_count":17444122,"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","traditional-ai"],"created_at":"2024-08-04T01:00:42.161Z","updated_at":"2026-04-09T00:11:36.311Z","avatar_url":"https://github.com/wenxuanjun.png","language":"V","funding_links":[],"categories":["Applications"],"sub_categories":["Games"],"readme":"# 2048\n\nA simple 2048 game written in V with some AI algorithms.\n\n## Prepare\n\nClone this repository:\n\n```bash\ngit clone https://github.com/wenxuanjun/2048\ncd 2048\n```\n\nInstall [`V`](https://github.com/vlang/v) and [`just`](https://github.com/casey/just), then use `just -l` to list available recipes.\n\n## Run\n\nAdd `-h` to those recipes that have optional flags to see full options of the game.\n\n```bash\njust run -h\n```\n\nTo just play without AI:\n\n```bash\njust run -g\n```\n\nUse `-A` to select the AI algorithm:\n\n```bash\njust run -A dfs\n```\n\nThere are various kinds of AI you can choose:\n\n- dfs\n- heuristic\n- minmax\n- expectimax\n- monte\n- reinforcement\n\nThe default algorithm is `dfs`.\n\nYou can also use `-a` to enable AI with GUI:\n\n```bash\njust run -g -a -A expectimax\n```\n\n## Build\n\nYou can create production build to gain the performance optimized executable.\n\n```bash\njust build\n```\n\nAnd replace `just run` with `./2048` of commands mentioned above.\n\n```bash\n./2048 -r mt19937 -A monte\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwenxuanjun%2F2048","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwenxuanjun%2F2048","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwenxuanjun%2F2048/lists"}