Skip to content

FeixLiu/Triana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TriantaEna

Group Members:

Name: Yuang Liu     BUID:U99473611
Name: Qi Yin        BUID:U31787103
Name: Jun Xiao      BUID:U85900288

How to run:

The entrance of the program is TriantaEna.java. You can run this program by

javac TriantaEna.java
java TriantaEna

Run Example:

Welcome to the Trianta Ena game.
The objective of the game is to accumulate a hand of cards that equals 31.
Or a hand that has a card value greater than your opponents without exceeding 31.
How many people in the game (include banker, no more than 10)? 3
Please input the name of person 1. What's your name: Mike
Please input the name of person 2. What's your name: Dan
Please input the name of person 3. What's your name: Alice
Please input the money for all players (default 200, please make sure you have more than 10): 100
Please input the money for banker (default 3 times of player's money, please make sure you have more than 3 times of player's money):
Dan you are the banker.
Banker's money: 300
Mike's money: 100
Alice's money: 100
========================================
Dan's handcards: (Diamond)7
Mike's handcards: (Plum)A
Alice's handcards: *
========================================
Mike, do you want to make bet? Y/y for yes, other for no: y
Mike, please input the money you want to bet: 50
Mike's bet: 50
Mike's wallet: 50
========================================
Dan's handcards: (Diamond)7
Mike's handcards: * (Diamond)Q (Diamond)2
Alice's handcards: (Spade)3
========================================
Alice, do you want to make bet? Y/y for yes, other for no: y
Alice, please input the money you want to bet: 50
Alice's bet: 50
Alice's wallet: 50
========================================
Dan's handcards: (Diamond)7
Mike's handcards: (Plum)A (Diamond)Q (Diamond)2
Alice's handcards: * (Plum)5 (Spade)A
========================================
========================================
Mike, please select action for your hand cards:
1 Hit.
2 Stand.
>>1
========================================
Dan's handcards: (Diamond)7
Mike's handcards: (Plum)A (Diamond)Q (Diamond)2 (Diamond)3
Alice's handcards: * (Plum)5 (Spade)A
========================================
========================================
Mike, please select action for your hand cards:
1 Hit.
2 Stand.
>>1
========================================
Dan's handcards: (Diamond)7
Mike's handcards: (Plum)A (Diamond)Q (Diamond)2 (Diamond)3 (Spade)K
Alice's handcards: * (Plum)5 (Spade)A
========================================
========================================
Mike, please select action for your hand cards:
1 Hit.
2 Stand.
>>2
========================================
Dan's handcards: (Diamond)7
Mike's handcards: * (Diamond)Q (Diamond)2 (Diamond)3 (Spade)K
Alice's handcards: (Spade)3 (Plum)5 (Spade)A
========================================
========================================
Alice, please select action for your hand cards:
1 Hit.
2 Stand.
>>1
========================================
Dan's handcards: (Diamond)7
Mike's handcards: * (Diamond)Q (Diamond)2 (Diamond)3 (Spade)K
Alice's handcards: (Spade)3 (Plum)5 (Spade)A (Diamond)8
========================================
========================================
Alice, please select action for your hand cards:
1 Hit.
2 Stand.
>>2
Dan's handcards: (Diamond)7 (Plum)A (Spade)9 (Heart)3
Mike's handcards: (Plum)A (Diamond)Q (Diamond)2 (Diamond)3 (Spade)K
Alice's handcards: (Spade)3 (Plum)5 (Spade)A (Diamond)8
Mike: Lose!
Alice: Lose!
Banker's money: 400
Mike's money: 50
Alice's money: 50
Mike, do you want to play another game? Y/y for yes, other for no: n
Mike's balance in wallet is: 50
Alice, do you want to play another game? Y/y for yes, other for no: n
Alice's balance in wallet is: 50

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages