Giter Site home page Giter Site logo

bigemperor26 / 2048 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anushwar/2048

0.0 0.0 0.0 572 KB

Re-implementation of the 2048 game using Next.js with Typescript.

Home Page: https://2048-zeta-neon.vercel.app/

Shell 0.67% JavaScript 9.49% TypeScript 89.00% CSS 0.85%

2048's Introduction

๐Ÿ•น๏ธ 2048

Implementation of the famous 2048 game in Next.js. You can play it here.

Pre-requisites

Installation

Clone the repository. Make sure to have pnpm installed. If you don't have it, run the following command:

npm install -g pnpm

Then, install the dependencies and run the development server:

pnpm install
pnpm dev

Finally, open your browser and go to http://localhost:3000 to play the game.

Controls

  • The game is played with the arrow keys ( โ† โ†‘ โ†“ โ†’ ) .
  • If you want to play on your phone, you can use the swipe gestures.

Download

This is a progressive web app, so you can download it to your phone or computer on any device.

  • For Desktop Users ๐Ÿ’ป:

    1. Open your preferred web browser (Google Chrome, Firefox, Safari, or Microsoft Edge).
    2. Go to the app.
    3. On the top right corner of your browser, click the three-dot icon (Chrome, Microsoft Edge) or the hamburger icon (Firefox, Safari).
    4. From the dropdown menu, click "Install 2048" or "Add to Home Screen."
    5. Follow the prompts to install the PWA.
  • For Mobile Users ๐Ÿ“ฑ:

    1. Open your preferred mobile browser (Google Chrome, Safari, Firefox, or Microsoft Edge).
    2. Go to the app.
    3. Click the "Add to Home Screen" button on the browser's menu.
    4. Rename the app if you wish, and then click "Add."
    5. The PWA will now be installed on your device.

Implementation

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

2048's People

Contributors

anushwar avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.