Skip to content

skamranahmed/2048

Repository files navigation

✨ 2048 Game

The web version of the classic 2048 game. The game is built using React and NextJS.

🌐 Live Demo

You can play the game at https://2048-dtr.pages.dev

🚀 Getting Started

To get started with the project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/skamranahmed/2048
    cd 2048
  2. Install the dependencies:

    npm install
    # or
    yarn install
  3. Run the development server:

    npm run dev
    # or
    yarn dev
  4. Open http://localhost:3000 in your browser to see the game in action.

👨‍💻 Project Structure

  • pages/: Contains the main application pages.

  • components/: Contains reusable components such as the game board, tiles, and score display.

  • context/: Contains the game context for managing state and actions.

  • reducers/: Contains the game reducer for handling game logic.

  • models/: Defines TypeScript models for tiles and game state.

  • styles/: Contains global and component-specific styles.

  • __tests__/: Contains tests for component and hooks.

📝 License

This project is licensed under the MIT License