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.
- Host: GitHub
- URL: https://github.com/spa5k/2048-typescript-cli
- Owner: spa5k
- Created: 2021-06-12T18:04:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-16T18:21:27.000Z (almost 5 years ago)
- Last Synced: 2025-03-21T17:04:15.602Z (about 1 year ago)
- Topics: 2048, 2048-cli, cli, node-cli, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# 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/)