An open-source online Mahjong game built with Next.js and modern web technologies. Play Mahjong online in a beautiful, responsive interface. We use ruffle to load flash game to make flash game compatible with modern browsers.
- A tile is considered open or exposed when it can be moved either left or right without disturbing other tiles`,
- Match and remove open pairs of identical tiles from the board`,
- Any two seasons can form a pair, as can any two flowers`,
- The game ends when no legal moves can be made`,
- 🎮 Multiple Mahjong game variants support(in progress)
- 🎨 Beautiful UI with Shadcn UI components
- 🌓 Dark/Light theme support
- 🌍 Multi-language support (in progress)
- 📱 Responsive design for all devices
- 💬 Player review system
- Framework: Next.js 14
- Styling: Tailwind CSS
- UI Components: Shadcn UI
- Icons: Lucide React
- Theme: Next-themes
- Analytics: Vercel Analytics
Before you begin, ensure you have the following installed:
- Node.js (v18 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/yourusername/mahjong.git
cd mahjong
- Install dependencies:
npm install
- Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
mahjong/
├── app/ # Next.js app directory
├── components/ # Reusable UI components
├── public/ # Static assets
└── styles/ # Global styles
To start the development server:
npm run dev
Other available commands:
npm run build
- Build the production applicationnpm run start
- Start a production servernpm run lint
- Run ESLint
Contributions are welcome! Please feel free to submit a Pull Request.
- Game switch functionality
- Review schema implementation
- Twitter review integration
- Enhanced language support
- UI Template references:
This project is open source and available under the MIT License.