Go to file
2025-11-11 22:17:36 -06:00
lib update megamillions to new game structure. update requirements. add lotto texas. add two step. add high number formatting with commas. 2025-11-11 22:17:36 -06:00
lottotexas update megamillions to new game structure. update requirements. add lotto texas. add two step. add high number formatting with commas. 2025-11-11 22:17:36 -06:00
megamillions update megamillions to new game structure. update requirements. add lotto texas. add two step. add high number formatting with commas. 2025-11-11 22:17:36 -06:00
powerball update megamillions to new game structure. update requirements. add lotto texas. add two step. add high number formatting with commas. 2025-11-11 22:17:36 -06:00
twostep update megamillions to new game structure. update requirements. add lotto texas. add two step. add high number formatting with commas. 2025-11-11 22:17:36 -06:00
.gitignore update megamillions to new game structure. update requirements. 2025-09-01 23:41:21 -05:00
LotteryChecker.sublime-project Update to be multi-ticket reportable. 2022-12-02 23:05:02 -06:00
play.py update megamillions to new game structure. update requirements. 2025-09-01 23:41:21 -05:00
README.md initial commit 2022-01-05 19:59:44 -06:00
requirements.txt update megamillions to new game structure. update requirements. 2025-09-01 23:41:21 -05:00

Generic Lottery game number checker

Currently includes Powerball and Megamillions.

You add your picks to {game}/picks.py, and run ./play -g {gamename} eg .play.py -g powerball

The script will pull the current winning numbers from an rss feed, and compare them to each ticket you list in the picks.py file for that game.

The output per ticket:

Winning Numbers: [2, 13, 32, 33, 48]
Winning Powerball: 22
Your Numbers: (1, 2, 3, 4, 5)
Your Powerball: 9
Matched Numbers: [2]
Matched Powerball: False
Not a Winner!

OR

Winning Numbers: [2, 13, 32, 33, 48]
Winning Powerball: 22
Your Numbers: (1, 2, 3, 4, 5)
Your Powerball: 22
Matched Numbers: [2]
Matched Powerball: True
Ticket is worth: 8