{"id":18541313,"url":"https://github.com/fernaper/game-2048-ai","last_synced_at":"2025-10-26T18:02:18.774Z","repository":{"id":111647605,"uuid":"145143918","full_name":"fernaper/Game-2048-AI","owner":"fernaper","description":"This is a Neural Network created with tflearn that can play the 2048 Game.","archived":false,"fork":false,"pushed_at":"2018-10-21T19:29:02.000Z","size":14331,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T03:43:12.114Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fernaper.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":"2018-08-17T16:35:33.000Z","updated_at":"2018-10-21T19:29:03.000Z","dependencies_parsed_at":"2023-04-01T11:19:49.764Z","dependency_job_id":null,"html_url":"https://github.com/fernaper/Game-2048-AI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fernaper/Game-2048-AI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernaper%2FGame-2048-AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernaper%2FGame-2048-AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernaper%2FGame-2048-AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernaper%2FGame-2048-AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fernaper","download_url":"https://codeload.github.com/fernaper/Game-2048-AI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernaper%2FGame-2048-AI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260735478,"owners_count":23054684,"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":[],"created_at":"2024-11-06T20:04:41.860Z","updated_at":"2025-10-26T18:02:13.754Z","avatar_url":"https://github.com/fernaper.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Game 2048](https://image.ibb.co/g1GrCz/2048_logo.png)\n\n# Game 2048 AI #\n\nThis is an artificial intelligence project. Pretend using AI techniques to play the 2048's game.\nIt is based on training through simple heuristics of road exploration.\n\nIt is based on the training of a neural network (thanks tflearn) by means of simple heuristics of road exploration.\n\nThe results obtained are:\n\n \u003cworking on it\u003e\n\n# Pre-requisites\n\n```\npip3 install -r requirements.txt\n```\n\n## How to train: ##\n\n- Execute: `python3 Game2048 train`\n- First it will generate training games with an exploration algorithm.\n- You could stop this games when you think (but the default amount of games are a really good option).\n- When it generates all the training data, it start training the neural network.\n\nNote: If you want to re-train your neural network without generating more training games just execute: `python3 Game2048 train --games=0`\n\n## How to test: ##\n\n- Execute `python3 Game2048 play`\n- If you want to see more games just change the command to: `python3 Game2048 play --games=10`\n\n## How to play the game manually: ##\n\n - Execute `python3 Game2048 play --heuristic=manual`\n\n## Credits: ##\n\n The base code of the Game (not the artificial intelligence) was made by [yangshun](https://github.com/yangshun/2048-python).\n I made some changes on the code, mainly to adapt it to play and train the neuronal network.\n\n The rest of the code has been created entirely by Fernando Pérez (@fernaperg).\n\n## LICENSE: ##\n\n This code is free to use, but look carefully at the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernaper%2Fgame-2048-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffernaper%2Fgame-2048-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernaper%2Fgame-2048-ai/lists"}