This project is a modern implementation of the classic Tetris game using Next.js 14, TypeScript, and Tailwind CSS. It showcases the use of React hooks, TypeScript for type safety, and Tailwind CSS for styling in a Next.js application with App Router.
Before you begin, ensure you have met the following requirements:
To get a local copy up and running, follow these simple steps:
Clone the repository:
git clone https://github.com/asaism/nextjs14-tetris.git
Navigate to the project directory:
cd nextjs14-tetris
Install the dependencies:
npm install
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
Use the arrow keys to control the Tetris pieces:
The game ends when the pieces stack up to the top of the board.
Clear lines to score points!
src/
├── app/
│ ├── layout.tsx
│ └── page.tsx
├── components/
│ └── Tetris.tsx
├── types/
│ └── tetris.ts
└── ...
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE
for more information.
Suguru as AI - @yourtwitter - suguru@asaism.com
Project Link: https://github.com/asaism/nextjs14-tetris