Dou Dizhu, also known as "Fight the Landlord," is a popular Chinese card game that involves strategy and bluffing. The game is played with a standard deck of 108 cards, consisting of 9 suits (numbered 1-9) with four cards of each suit. In this simulation, we'll use a simplified version of the game.
Card Ranks and Values
Numbered cards 1-8 are worth their face value.
Numbered cards 9 are wild cards, also known as "jokers." They can be used as any number.
Aces are worth 1 point.
Gameplay
The game starts with 4 players, A, B, C, and D (landlord).
The player with the highest card goes first.
Players take turns playing one card from their hand per turn.
The player who plays the highest card wins the round, earning points.
If a player plays a 9 (wild card), they can choose the number it represents.
If a player has no cards left, they lose the game.
Simulation Code
python
import random
class Card:
def __init__(self, suit, value):
self.suit = suit
self.value = value
def __repr__(self):
return f"{self.value} of {self.suit}"
class Player:
def __init__(self, name):
self.name = name
self.hand = []
def draw(self, deck):
self.hand.append(deck.pop())
def play_card(self):
return self.hand.pop(0)
class DouDizhuGame:
def __init__(self):
self.deck = [Card(s, v) for s in ['Peasant', 'Peasant', 'Peasant', 'Peasant', 'Landlord', 'Landlord', 'Landlord', 'Landlord', 'Landlord'] for v in range(1, 10)]
random.shuffle(self.deck)
self.players = [Player('A'), Player('B'), Player('C'), Player('Landlord')]
def deal_cards(self, num_cards):
for player in self.players:
for _ in range(num_cards):
player.draw(self.deck)
def play_round(self):
# Determine the highest card played
highest_card = None
winner = None
for player in self.players:
card = player.play_card()
print(f"{player.name} ({player.name[0]}): {card}")
if highest_card is None or card.value > highest_card.value:
highest_card = card
winner = player
# Update points
if winner.name == 'Landlord':
print(f"{winner.name} wins the round!")
else:
print(f"{winner.name} wins the round!")
# Return the winner's name
return winner.name
def play_game(self):
self.deal_cards(5)
while True:
print("\n" + "-"*20)
for player in self.players:
print(f"{player.name} ({player.name[0]})")
highest_card = self.play_round()
for player in self.players:
if player.hand == []:
print(f"{player.name} has no cards left. {highest_card} wins the game!")
return
# Start the game
game = DouDizhuGame()
game.play_game()
Gameplay Example
code
--------------------
A (A): 8 of Peasant
B (B): 5 of Landlord
C (C): 3 of Peasant
Landlord (L): 9 of Landlord
In this example, player A plays an 8, player B plays a 5, player C plays a 3, and player Landlord plays a 9 (wild card). The highest card played is the 8, so player A wins the round. The game continues until one player has no cards left.
Note that this is a simplified version of the game, and you can modify the code to add more features, such as scoring, betting, and more complex rules.
“Simulate a Dou Dizhu card game in the following format: A (peasant): 2 B (landlord):….” Conversation with llama-3.1-8b-instruct, from the LMArena Human Preference 100K dataset. The Chat Archive, 2026. https://thechatarchive.com/c/01m8517yqgn63zn03q24qntn8p