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
- Golang develops production grade Mahjong game server – Part 1
- Golang develops production grade Mahjong game server – Part 2
- Golang development production grade mahjong game server – chapter 3
- Golang development production grade Mahjong game server – chapter 4
- Golang development production grade Mahjong game server – chapter 5
- 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 architecture
understandMahjong Server
Business – >Nano Distributed Game Server
+Micro service
Transformation.- Demo: go – mahjong – server
The rules of the game
Three people
Mode < three people, two rooms > usecylinder
The child,article
The two suits are combined72
Zhang.Three people
Only when the mode is greater than 1 times and the point is low, can you point the gun (select “point gun can point gun”).Four people
Use the “Blood to the End” modecylinder
article
wan
The three suits are total108
CARDS.- After the player has folded, the rest of the players continue to play until
Flow bureau
Or just one playerNot hu
So far. Flow bureau
When check shout, namelyThere is no call
Players need to pressMaximum number of words
Payouts have called players.- The player who played the last game plays the next
When the village
If one shot rings more than one time, click the gun player for zhuang. Self-drawn kadesh
(If the check box is added, then added).- In a game, the number of moves selected when creating a room is capped (
3
,4
,5
).
terms
It's windy
,It rains
- if
Led bar
(with three cards of the same kind in hand, someone plays a fourth card), to the leadLow's X2
The water of the money. - if
The poles
(after already touched cards, they touch the fourth parallel bar card), then to each not hu card players collectLow times X1
Water money, the above two forIt's windy
. - If the player is
Dark bar
(they draw four cards and bar cards), then to each not hu card players collectLow's X2
The 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.
- if
- Blood to the end: after one hu card, the game continues until only one hu card is left or the game is lost.
- 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 pointsBar on the gun
: Bar card after point cannonCall forwarding
: after opening the bar to point the gun, the bar money is transferred to the player who receives the gunGrab bar
: Bar when the card is other people hu, called rob bar, rob bar hu card, not bar
Check call
: If there are two or more players have no hu cards, then check the call.Tax rebates
: Players will be required to return all rain and wind revenue when checking.
Hu card type
Hu ping
(0) : Four strokes (minus four sets of blades) plus a pair of swords.For hu
(1 or 2) : 4 sets of carvings and a pair of generals.all
(2) : All the same color of the flat hu.Clear to
(3 or 4 times) : all color plus on hu.Seven to
(2 times) : Player’s hands are full of pairs, without touching or rain.Seven of the dragon
(3 times) : hands are full of pairs, and only one root, no touch and wind and rain.About seven
(4 times) : One color + seven pairs.Qing dragon seven pairs
(5 times) : One color + seven pairs of dragons.All MAO nine
(3 times) : all the composition of the straight son, engraved son, will be included in the card1
or9
.Will the
(3 or 4 times) : contains only2/5/8
Yes, yes, hu.Seven to
(5 times) : Contains only2/5/8
Seven pairs of dragons.MenQing
(1) : contains only2/5/8
Seven pairs of dragons.In zhang
(1) : Hu card, not included1/9
The card.Sandwich five
(1) : Hu brand, brand type can be placed into4
and6
Clip a5
.
His calculations
his
=Low x2
For example, low gold is1
Points,2
Time =1 * 2 * 2
=4
Minutes, 3 times =1 * 2 * 2 * 2
=8
points- Basically lose (win) points =
Card type integral
+It's windy rain
+Add self-drawn
(Self touch plus count in the total) - The settlement mode is 1 to 1, and the settlement mode is 1 to many
- Additional comments:
The root
: +1 (there are 4 identical cards in all cards, regardless of touch or bar), can be calculated cumulativelyBar to spend
: + 1Bar on the gun
: + 1Grab bar hu
: + 1haidilao
: + 1Gold 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