Tetris Game

A modern Tetris game built with React and Node.js.

Technologies

Features

Project Structure

src/
├── frontend/        # React frontend
├── backend/         # Express + Socket.IO server
├── engine/          # Game logic
├── ui/              # Shared UI components
└── utils/           # Utility functions

Setup

  1. Install dependencies:
    npm install
    
  2. Start the development server:
    npm run dev
    
  3. Build for production:
    npm run build
    

Docker

Build and run with Docker:

docker build -t tetris-game .
docker run -p 3000:3000 -p 4000:4000 tetris-game

License

MIT