Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daocloud/dao-2048
2048 is a number puzzle game.
https://github.com/daocloud/dao-2048
2048 2048-game kubernetes
Last synced: 5 days ago
JSON representation
2048 is a number puzzle game.
- Host: GitHub
- URL: https://github.com/daocloud/dao-2048
- Owner: DaoCloud
- License: mit
- Created: 2015-06-03T11:19:33.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-12-02T06:13:14.000Z (about 1 month ago)
- Last Synced: 2025-01-03T09:00:09.320Z (12 days ago)
- Topics: 2048, 2048-game, kubernetes
- Language: JavaScript
- Homepage: http://daocloud.github.io/dao-2048/
- Size: 491 KB
- Stars: 212
- Watchers: 45
- Forks: 2,327
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 2048
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/dao-2048)](https://artifacthub.io/packages/search?repo=dao-2048)
2048 is a number puzzle game. When the squares of the same number are merged together, they will add up. Each round will have an extra square with 2 or 4 written on it, and the game ends when the square cannot be moved. Players have to find a way to make up a square with **2048** (or larger) in this small 16 squares.
# Quick Start
## Run as docker container
open shell and input:
```
export VERSION=v1.4.1
docker run -d -p 8080:80 ghcr.io/daocloud/dao-2048:$VERSION
```open browser and view http://:8080 .
## Run in kubernetes
```
export VERSION=v1.4.1
helm repo add dao-2048 http://daocloud.github.io/dao-2048/
helm install dao-2048 dao-2048/dao-2048 --version $VERSION
```## Advanced Usage
### Use LoadBalancer Service
```
helm upgrade --install dao-2048 dao-2048/dao-2048 --version $VERSION --set service.type=LoadBalancer
```### Use Dual Stack Service
```
helm upgrade --install dao-2048 dao-2048/dao-2048 --version $VERSION --set service.ipFamilyPolicy=PreferDualStack
```### Use Static Image
```
helm upgrade --install dao-2048 dao-2048/dao-2048 --version $VERSION --set image.repository=daocloud/dao-2048-static
```### Thanks
This image is derived from the Docker Hub image **[alexwhen/docker-2048](https://registry.hub.docker.com/u/alexwhen/docker-2048/)**, thanks to the developer **[alexwhen](https://github.com/alexwhen)** enthusiastic support. And thanks to gabrielecirulli's [2048](https://github.com/gabrielecirulli/2048) project