The web version of the classic 2048 game. The game is built using React and NextJS.
You can play the game at https://2048-dtr.pages.dev
To get started with the project, follow these steps:
-
Clone the repository:
git clone https://github.com/skamranahmed/2048 cd 2048
-
Install the dependencies:
npm install # or yarn install
-
Run the development server:
npm run dev # or yarn dev
-
Open http://localhost:3000 in your browser to see the game in action.
-
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.
This project is licensed under the MIT License