Let's play 2048 game in a browser!
💡 This is a hard fork of gabrielecirulli/2048 which hasn't been updated since 2017.
If you have a container engine running, you can start right away with the image:
docker run --rm -p 8080:80 ghcr.io/suse/game-2048
Open the web application and enjoy the game!
The recommanded way to run the application is to deploy in a Kubernetes cluster with with the Helm chart.
If you want to modify the CSS, edit the SCSS files present in style/
: main.scss
and others. Don't edit the main.css
, because it's supposed to be generated.
In order to compile your SCSS modifications, you need to use the sass
gem (install it by running gem install sass
once Ruby is installed). To run SASS, simply use the following command:
sass --unix-newlines --watch style/main.scss
SASS will automatically recompile your css when changed.
Build a new image:
docker build . -t game-2048 --no-cache
Start a container:
docker run --rm -p 8080:80 game-2048
Open localhost:8080 et enjoy 😁