Skip to content

Commit

Permalink
WIP: Card and Deck ADTs
Browse files Browse the repository at this point in the history
  • Loading branch information
yichen0104 committed Aug 5, 2020
1 parent 24f1d66 commit 7b06501
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion src/csci4963u20/project/doudizhu/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public static void main(String[] args){
d.add(new Card(11, "J"));

d.sortDeck();

d.printDeck();
d.shuffle();
d.printDeck();
}
}

0 comments on commit 7b06501

Please sign in to comment.