Skip to content

zt1983811/silanis_lottery

Repository files navigation

Silanis Lottery

Build Status Coverage Status codecov Codacy Badge codebeat badge Dependency Status

Description:

Lottery machine follow this requirment

System Requirment:

Project require Java 8

How to run project:

  1. git clone https://github.com/zt1983811/silanis_lottery.git
  2. ./gradlew build
  3. java -jar build/libs/silanisLottery-1.0.jar

User Guide:

How to purchase:
  • 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
How to draw the winners:
  • In console type draw and hit enter key
  • output Winner has been drawn
How to display the winners:
  • In console type winners and hit enter key
  • output
1st ball 2nd ball 3rd ball

Chris: 97.5$ Tom: 19.5$ Coke: 13.0$
How to restart another draw:
  • 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
How to quit:
  • In console type quit and hit enter key
Notice:
  • Minmum 3 participants required before draw winners
  • Maxmum 50 participants allowed
  • Every draw inital pot is 200$, and total pot is depence on participant

Generate Eclipse project:

./gradlew clean eclipse

Check the test:

./gradlew clean test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages