To install the dependencies, run:
npm install
To run the program, run:
node lottery.js
- 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