This little Mac OS X program could make you rich! It may not help you win the jackpot, but it could be your introduction to the wonderful world of Cocoa. Even if you do not earn a single buck selling your fantastic creations, your life will never be the same again.
Try it out and read the brief introduction to Cocoa and Objective-C (PDF 135 kB). If that doesnt scare you away, then you are welcome to download the source code and modify it to suit the Lotto system of your own locale.
LottofleX is a flexible version of Lotto for other games such as Keno, or for those of you who have to gamble outside Sweden. It will generate pseudorandom numbers for virtually any game. The size of the board can be adjusted between 25 and 99, and from 2 to 25 numbers for each game.
LottoMatriX is a new version of the Lotto application that builds on the NSMatrix class and uses NSButton cells for the game board. Since the buttons can use three states, this adds new functionality to the program, the user can now include or exclude certain numbers from the lottery.
Lotto touch is Lotto for the iPhone and iPod touch, and possibly the greatest version of the trivial Lotto app. Programming for the new Apple platform is fun but by no means easy. Only fools will believe that it is trivial to copy the ease of use and elegance of an Apple application. Getting to grips with the SDK and the very different iPhone interface is the easy bit, shaping the application so that it looks good and works well takes much more effort.
Lotta for iPad is Lotta! for the much larger iPad screen with room for four game matrices and much simplified settings. It is based on the new Split View display only available on the iPad. The landscape view is wide enough to acommodate the list of games on the left side, while the narrow portrait view shows the list in a popover view, as in the image.
The following images illustrate how Lotta! may look to those with limited color vision. From left to right: deuteranopia, protanopia, the rare tritanopia and achromatopsia. Images curtesy Colorblindor.
E-mail your thoughts on the programs to:
Lotta! for iPhone project: Lotta!.zip (78 kB)
Lottery: A tax on people who are bad at math.