I have a Java console application which accepts the user input and performs action based on the input. Below is the sample:
**Payout Table Multiplier**
=======================================
Royal Flush | 250
Straight Flush | 50
Four of a Kind | 25
Full House | 9
Flush | 6
Straight | 5
Three of a Kind | 3
Two Pairs | 2
Royal Pair | 1
-----------------------------------
Balance: $500
Enter bet:
I have to enter the amount to bet with:
Enter bet: 300
HAND: [K Spades, J Spades, 10 Clubs, 9 Diamonds, J Hearts]
Enter positions of cards to keep (e.g. 1 4 5):
Enter positions of cards to keep (e.g. 1 4 5):
3
Held Cards: [10 Clubs]
NEW HAND: [10 Clubs, 5 Clubs, 10 Hearts, A Diamonds, 10 Diamonds]
**Three of a Kind**
Your balance: $1400
One more game (y or n)?
y
I just need help with an idea of a bash script to automate this manual process.