This is a web-based Mahjong game developed using Django and React.
The Reedies' Mahjong Web Game allows players to enjoy the classic game of Mahjong online. It provides a user-friendly interface where players can create or join rooms, play against each other, and experience the excitement of this popular tile-based game.
-
Support for multiple simultaneous games and real-time multiplayer gameplay with an intuitive and responsive user interface
-
Alerts for possible moves like 'peng' and 'chi', offering players strategic choices.
-
Discard, declare pong, chi, and other essential Mahjong actions with automatic tile shuffling and dealing
- Django: Backend framework for handling game logic and communication
- React: Frontend library for building interactive user interfaces
- WebSockets: Real-time communication between the server and clients
- HTML/CSS: Markup and styling for the game interface
- SQLite3: Database system for storing game data
-
Clone the repository:
git clone https://github.com/Lyce24/Reed_Mahjong.git
-
Navigate to the project directory:
cd Reed_Mahjong
-
Install backend dependencies:
pip install -r requirements.txt
-
Install frontend dependencies:
cd frontend npm install
-
Set up the database:
cd ../App python manage.py migrate
-
Start the development server:
cd .. python manage.py runserver
-
In a separate terminal, navigate to the frontend directory and start the React development server:
cd frontend npm start
-
Access the Mahjong Web Game in your web browser at http://localhost:3000.
- Create a new game room or join an existing room by entering the room code.
- Wait for other players to join the room.
- Once all players are ready, start the game (Need 4 players in order to start the game).
- Follow the on-screen instructions to play Mahjong.
- Enjoy the game and have fun!
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License.
- The game logic and rules are based on the traditional Mahjong game (Sichuan Mahjong).
- Special thanks to the Django and React communities for their amazing frameworks and libraries.
For any inquiries or questions, please contact [email protected].