Repository navigation
Version History
| Date | Version | Description |
|---|---|---|
| 04/05/2017 | 3.0.0 | Implemented Menu system to simplify the game play. |
| 04/01/2017 | 2.1.1 | Fix logic error with selection of game numbers. |
| 03/27/2017 | 2.1.0 | Added feature to evaluate picked numbers against winning numbers. |
| 03/24/2017 | 2.0.0 | Added feature to generate a set of winning numbers. |
The code structure of the Get-JackPot script (spacing, indentation and etc... ) is influenced on how Visual Studio Code does code folding. The code folding feature in vscode is something I try to leverage has much as possible. When opening the script in vscode, my first command is always 'Ctrl+K+0'. This will colapse the 700 hundred lines of code so it can be displayed on a single page.

The selection of game numbers is randomly chosen based on a set of numbers defined in an array collections of objects containing 2 or 3 fields separated by a comma depending on the game.

The $HotArray definition as shown above consists of a set of numbers that are most frequently choosen for each game. The first field is always the name of the game and the second field is always a pool of numbers. Numbers selected for each game played are randomly selected from the game's pool of numbers.
PowerBall and MegaMillion are unique in that they have a second pool of numbers upon which a random selection of a single number is performed. I call this the game ball, but offically they are named the PowerBall and the MegaBall.
If desired, the set of numbers in the pool can be anything you desire. I just happened to use numbers that are most frequently drawn for each game.
By default, the $HotArray is always used as the pool of numbers to be used for number selection. Another array called $AllArray contains all of the available numbers for each game. It is possible to modify the default to be this pools of numbers for selection. See the documentation on how to change the default selection pool.