Empty Blood battle gameplay & Rules of the game

Empty blood to fight with the use of pure Sichuan mahjong play, divided into three mode and four modes, three mode < three two rooms > only stripes and drum two colors a total of 72 cards, the game rhythm is faster, more intense battle. Four mode “blood fight to the end” using tube bar three suits a total of 108 cards, the opening choice of set suit, not play a lack can not hu card.

series

  1. Golang develops production grade Mahjong game server – Part 1
  2. Golang develops production grade Mahjong game server – Part 2
  3. Golang development production grade mahjong game server – chapter 3
  4. Golang development production grade Mahjong game server – chapter 4
  5. Golang development production grade Mahjong game server – chapter 5
  6. Golang development production grade Mahjong game server – chapter 6

introduce

This will be a complete, fully implemented Golang game server development tutorial series for DevOps/GitOps and cloud processes on Kubernetes.

This series of tutorials is a complete teardown of the open source Nanoserver project, designed to help you get started on the Golang server backend. Understand the essence of Golang development through practice — Share memory by communication.

The project may also involve work on Linux performance tuning (BPF related tools) and system assurance (SRE).

Step By Step development Mahjong Server

  • Monomer architectureunderstandMahjong ServerBusiness – >Nano Distributed Game Server + Micro serviceTransformation.
  • Demo: go – mahjong – server

The rules of the game

  1. Three peopleMode < three people, two rooms > usecylinderThe child,articleThe two suits are combined72Zhang.
  2. Three peopleOnly when the mode is greater than 1 times and the point is low, can you point the gun (select “point gun can point gun”).
  3. Four peopleUse the “Blood to the End” modecylinder article wanThe three suits are total108CARDS.
  4. After the player has folded, the rest of the players continue to play untilFlow bureauOr just one playerNot huSo far.
  5. Flow bureauWhen check shout, namelyThere is no callPlayers need to pressMaximum number of wordsPayouts have called players.
  6. The player who played the last game plays the nextWhen the villageIf one shot rings more than one time, click the gun player for zhuang.
  7. Self-drawn kadesh(If the check box is added, then added).
  8. In a game, the number of moves selected when creating a room is capped (3,4,5).

terms

  1. It's windy,It rains
    • ifLed bar(with three cards of the same kind in hand, someone plays a fourth card), to the leadLow's X2The water of the money.
    • ifThe poles(after already touched cards, they touch the fourth parallel bar card), then to each not hu card players collectLow times X1Water money, the above two forIt's windy.
    • If the player isDark bar(they draw four cards and bar cards), then to each not hu card players collectLow's X2The water money, at this time called rain.
    • If the settlement did not hu card, and did not call, then the wind and rain do not calculate.
  2. Blood to the end: after one hu card, the game continues until only one hu card is left or the game is lost.
  3. Bar on the flower, bar on the gun, call transfer, grab bar
    • Bar to spend: after the bar card touch, bent bar and dark bar, the rest of the not hu card players will deduct points
    • Bar on the gun: Bar card after point cannon
    • Call forwarding: after opening the bar to point the gun, the bar money is transferred to the player who receives the gun
    • Grab bar: Bar when the card is other people hu, called rob bar, rob bar hu card, not bar
  4. Check call: If there are two or more players have no hu cards, then check the call.
  5. Tax rebates: Players will be required to return all rain and wind revenue when checking.

Hu card type

  1. Hu ping(0) : Four strokes (minus four sets of blades) plus a pair of swords.
  2. For hu(1 or 2) : 4 sets of carvings and a pair of generals.
  3. all(2) : All the same color of the flat hu.
  4. Clear to(3 or 4 times) : all color plus on hu.
  5. Seven to(2 times) : Player’s hands are full of pairs, without touching or rain.
  6. Seven of the dragon(3 times) : hands are full of pairs, and only one root, no touch and wind and rain.
  7. About seven(4 times) : One color + seven pairs.
  8. Qing dragon seven pairs(5 times) : One color + seven pairs of dragons.
  9. All MAO nine(3 times) : all the composition of the straight son, engraved son, will be included in the card1or9.
  10. Will the(3 or 4 times) : contains only2/5/8Yes, yes, hu.
  11. Seven to(5 times) : Contains only2/5/8Seven pairs of dragons.
  12. MenQing(1) : contains only2/5/8Seven pairs of dragons.
  13. In zhang(1) : Hu card, not included1/9The card.
  14. Sandwich five(1) : Hu brand, brand type can be placed into4and6Clip a5.

His calculations

  1. his=Low x2For example, low gold is1Points,2Time =1 * 2 * 2=4Minutes, 3 times =1 * 2 * 2 * 2=8points
  2. Basically lose (win) points =Card type integral+It's windy rain+Add self-drawn(Self touch plus count in the total)
  3. The settlement mode is 1 to 1, and the settlement mode is 1 to many
  4. Additional comments:
    • The root: +1 (there are 4 identical cards in all cards, regardless of touch or bar), can be calculated cumulatively
    • Bar to spend: + 1
    • Bar on the gun: + 1
    • Grab bar hu: + 1
    • haidilao: + 1
    • Gold hu: + 1

Note: no double counting for each card type, only the maximum price will be charged.

I am weishao wechat: uuhells123 public number: hackers afternoon tea add my wechat (mutual learning exchange), pay attention to the public number (for more learning materials ~)Copy the code