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

https://github.com/spa5k/2048-typescript-cli

2048 CLI in NodeJs and Typescript.
https://github.com/spa5k/2048-typescript-cli

2048 2048-cli cli node-cli nodejs typescript

Last synced: 4 months ago
JSON representation

2048 CLI in NodeJs and Typescript.

Awesome Lists containing this project

README

          

![Logo](https://raw.githubusercontent.com/Unbuttun/2048-typescript-cli/master/public/2048_logo.png)

# 2048 on CLI - NodeJs, TypeScript

A quick Class Based implentation of 2048 on Node JS, full typescript

## Features

- Full Typescript Support.
- Save Support.
- Last game and highest score saving.

## Usage/Examples

```
git clone https://github.com/Unbuttun/2048-typescript-cli

cd 2048-typescript-cli

pnpm install
or
npm install
or
yarn

mv .env.example .env

pnpm start
```

## Environment Variables

To run this project, you will need to add the following environment variables to your .env file

`FINAL_SCORE` -> The score to reach before exiting.

`INITIAL_NUMBERS` -> Number of numbers to be present on Board on game start.

`SIZE` -> Size of the Board

## Authors

- [@unbuttun](https://www.github.com/unbuttun)

## License

[MIT](https://choosealicense.com/licenses/mit/)