Lottery machine follow this requirment
Project require Java 8
git clone https://github.com/zt1983811/silanis_lottery.git
./gradlew build
java -jar build/libs/silanisLottery-1.0.jar
- In console type
purchase
and hit enter key - output
Please enter first name:
- In console type
replace with your first name
and hit enter key - output
Thanks for you purchase, your ball number is: 3
- In console type
draw
and hit enter key - output
Winner has been drawn
- In console type
winners
and hit enter key - output
1st ball 2nd ball 3rd ball
Chris: 97.5$ Tom: 19.5$ Coke: 13.0$
- After draw the winners you need to restart draw for user to purchase
- In console type
restart
and hit enter key - output
New draw has been start
- In console type
quit
and hit enter key
- Minmum 3 participants required before draw winners
- Maxmum 50 participants allowed
- Every draw inital pot is 200$, and total pot is depence on participant
./gradlew clean eclipse
./gradlew clean test