Skip to content

Mystour/mahjong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mahjong Project (Beijing Version)

This is a Mahjong game project developed using Java, JavaScript, TypeScript, and Spring Boot by BDIC Group X.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them

  • Java
  • Maven
  • An IDE (like IntelliJ IDEA)

Installing

A step by step series of examples that tell you how to get a development environment running

  1. Clone the repo
    git clone https://github.com/Mystour/mahjong.git
  2. Install Maven packages
    mvn install
  3. Run the project
    mvn spring-boot:run

Now, you should be able to see the project running at http://localhost:8080.

Usage

Logging In

  1. Open your browser and navigate to https://github.com/Mystour/mahjong.
  2. On the login page, enter your username and password, then click the "login" button.

Game Interface

The game interface is divided into four sections, each representing the hand area of a player. Below each player's hand area is their discard pile.

Starting the Game

  1. At the start of the game, each player is dealt a certain number of tiles.
  2. Players can select the tile they want to discard by clicking on it in their hand.
  3. The discarded tile is placed in the discard pile.

Playing Music

There is a speaker icon at the bottom right corner of the game interface. Clicking on it will play background music.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Mystour - https://github.com/Mystour

Project Link: https://github.com/Mystour/mahjong

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •