This template repository contains the source code for a Python 2048 automatic bot, together with GitHub Workflows in order to allow ANYONE to play 2048 from a README file. Want to see this in action? Go to my profile page and feel free to try it out by yourself!
-
Click on
"Use this template"
. -
Replace the the link (
https://github.com/Darkempire78/Readme-2048
) to the link of your own repository in each files. -
Rename the folder
.github/_workflows
to.github/workflows
. -
Delete this README file and make your own
README.md
based on theREADME.template.md
. Do not forget that the both comments"<-- 2048GameActions -->"
and"<-- 2048Ranking -->"
cannot be deleted!
You can change the theme of the gameboard between dark and light mode editing config.json
.
- Play to 2048
- Archive games
- Leaderboard
- Dark mode
The current game is always called Data/Games/current.json
. All games are automatically archived into the Data/Games/
folder.
- Remove impossible actions
- Do not download Pillow each time
- Prevent from runing twice actions at the same time (https://github.com/marketplace/actions/wait-for-check)
Join the Discord server !
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project is under GPLv3.