Yalotto is a derivative of yabasic.
The major contribution, covered by an MIT licence, is to add functions that work on combinations,
instead of working only on the numbers in the pool. All possibles combinations are managed individually.
This extension permits to build effective covering wheels for lotto games.
In the implementation, it can handle games with pick of 3 to 10 balls and with a pool up to 99 numbers.
The added primitives permit to calculate the effective covering of each potential combination.
and unlike many other tools, it allows to realize the coverage calculations while assigning differents
weights to each individual combination.
Obviously if you put equal weights over all combinations, the behavior falls like the one of conventionals algorithms.
A greedy algorithm exploiting these primitives is shown through two examples:
- One that generate a covering set for Lottery games,
- One that sort a predefined Wheel.
The performance achieved is closed to that of backbox programs but thanks to the programming language
it is possible, at each stage, to have fine control over the combinations you choose.
The program is portable, it can be used from removable devices and is able to use the multi-threads/core capabilities of
A priori, it will never be released turnkey solutions.
You will have to program and to implement yourself any strategy you wish.
It's just a tool box to materialize your ideas.
Remember, the house always wins!
New in Jan 2014
- added 3 news functions. arrayset, arrayfree, cwd$
- made a 64 bits version.