1.0.1 • Published 1 year ago
cc-lottery-cli v1.0.1
Lottery App
Setup
To install the dependencies, run:
npm install
Run
To run the program, run:
node lottery.js
Idea
- buy ticket
- user picks their own numbers
- lottery generates random numbers
- check for winning ticket:
- primary winner: all numbers match
- consolation: at least 3 numbers match
- joker: numbers match and are in same order as lottery numbers