diff --git a/README.md b/README.md index 690c5e1..3bceed2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ -# java_project -所以我们准备写些啥呢... -Dou Dizhu: 3 client, 1 server +# Doudizhu +## Overview +This project is an implementation of a popular Chinese card game: Doudizhu. The game features easy-to-learn rules that are hard to master, requiring mathematical and strategic thinking as well as carefully planned execution. +The game is played among three people with one pack of cards (54 count), including the two differentiated jokers. It starts with each player bidding for the "landlord" position. Those who lose the bid or do not bid enter the game as the "peasants" team competing against the landlord. For each player, the objective of the game is to be the first one to have no cards left. +The game starts with the landlord. In each round, each player must be able to show a deck of a certain pattern following that of the last player in turn, while each card must be larger than each of the last player's. A player with no available cards to show will be skipped in the round. If both 2 other players are skipped for a pattern shown by a player, the game enters another round starting with that player. +## Logistics diff --git a/src/csci4963u20/project/doudizhu/Application.java b/src/csci4963u20/project/doudizhu/Application.java index d13f875..de5f853 100644 --- a/src/csci4963u20/project/doudizhu/Application.java +++ b/src/csci4963u20/project/doudizhu/Application.java @@ -17,7 +17,8 @@ public static void main(String[] args){ d.add(new Card(11, "J")); d.sortDeck(); - + d.printDeck(); + d.shuffle(); d.printDeck(); } }