Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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