Skip to content

spa5k/2048-typescript-cli

Repository files navigation

Logo

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

License

MIT