salvin francis wrote:Thats a lot of code and it would be a maintenance nightmare.
Here's my suggestion with comments to help you out:
Each SlotWinRule maintains its own "matches" method to see if it matches the current WheelData. It can also contain it's own points and type.
salvin francis wrote:Technically it looks good, but I think you can take this further...
Your machine just allows user to earn 15 points or 4 points. that too based on rigid rules: All three match or just 2 matches.
I have played slot machines where it first asks you to place a bet over what you think would win. The user can place multiple bets including diagonal match, middle line, top line, etc.. There are also bets on zigzag patterns. Once the user has invested all his bets, he cranks up the slot machine.
There are slot machine variations with 4 wheels and 5 wheels too instead of 3.
User may win some bets and lose some... But no matter what, the house always wins
Daniel Demesmaecker wrote:And how is that different from my first post?
German Hernandez wrote:Hi guys im with my first java/android app
I want shuffle 5 images i already check on google "how to shuffle images java" and "how to shuffle a deck on java" and i read stackoverflow but they explain the logic for shuffle the values of cards and i only want shuffle the images
If anyone can share a link or explainme what i need learn for add this effect will be great
thanks in advance for read this
Campbell Ritchie wrote:Are you really going to use a short instead of a long to save six bytes? Is it worth the trouble? Even on a mobile device?
jason edwardes wrote:. . . you can save a lot of space . . .