Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright18-May-12 9:51
professionalRoger Wright18-May-12 9:51 
GeneralRe: A Layout Question, And A Bit More Pin
PIEBALDconsult18-May-12 11:16
mvePIEBALDconsult18-May-12 11:16 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright18-May-12 11:31
professionalRoger Wright18-May-12 11:31 
AnswerRe: A Layout Question, And A Bit More Pin
Ennis Ray Lynch, Jr.18-May-12 5:44
Ennis Ray Lynch, Jr.18-May-12 5:44 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright18-May-12 19:50
professionalRoger Wright18-May-12 19:50 
AnswerRe: A Layout Question, And A Bit More Pin
BillWoodruff20-May-12 17:54
professionalBillWoodruff20-May-12 17:54 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright20-May-12 20:34
professionalRoger Wright20-May-12 20:34 
GeneralRe: A Layout Question, And A Bit More Pin
BillWoodruff21-May-12 18:10
professionalBillWoodruff21-May-12 18:10 
Hi Roger,

I think I'll play with this a bit more starting with:

1. add a field at the top of the UI to show the number of Tiles selected by the player. Perhaps the user should be allowed/required to enter the number prior to play ?

2. add a "play" button (initially disabled) to trigger the game

3. "enforce" minimal selection, or prevent too many tiles being selected than the game permits: before the Play button is enabled.

4. After the "run of the game:" those tiles selected by the random number generator will have the BackColor of TheTile set to Red: that will mean the tiles selected, by the player, before the game that are "winners," will have the orange background (indicating selected) for their internal TextBox surrounded by TheTile BackColor set to Red.

5. I might implement a global enumeration for each instance of TheTile; something like:

0 unselected and not a winner
1 unselected and a winner
2 selected and not a winner
3 selected and a winner

However, if I maintain generic List collections of selected tiles, and, after the game run, a generic list of winner tiles: calculating matches is trivial, so: maybe a enumeration is not really necessary.

I'd have to do some research to figure out the algorithm for the "payout," and implement the "additional bonus runs" ... triggered when the last number selected by the player is a "winner" feature ... if I understand you correctly.

Is this "cycle of additional bonus runs" always going to use the same original tiles selected by the player, or does the player have the opportunity to change the selection before each "bonus run" ?

My guess would be that it would re-use the original numbers, and the "bonus runs" are done automatically ... with the pay-out calculated on after each run and added to the original pay-out ?

Maybe this exercise will help me get over my complete disgust with the apparent future of what I call "Windows 8 Bi-Polar," and its freak-show collage of XAML, WRT, Metro, and the "Classic Desktop" (not to mention what will happen if you want to program on ARM-driven hardware) ? Smile | :)

best, Bill
"Humans are amphibians ... half spirit and half animal ... as spirits they belong to the eternal world, but as animals they inhabit time. This means that while their spirit can be directed to an eternal object, their bodies, passions, and imaginations are in continual change, for to be in time, means to change. Their nearest approach to constancy, therefore, is undulation: the repeated return to a level from which they repeatedly fall back, a series of troughs and peaks.” C.S. Lewis

GeneralRe: A Layout Question, And A Bit More Pin
BillWoodruff22-May-12 3:47
professionalBillWoodruff22-May-12 3:47 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright23-May-12 20:11
professionalRoger Wright23-May-12 20:11 
AnswerRe: A Layout Question, And A Bit More Pin
Gerry Schmitz21-May-12 13:12
mveGerry Schmitz21-May-12 13:12 
GeneralRe: A Layout Question, And A Bit More Pin
BillWoodruff21-May-12 17:42
professionalBillWoodruff21-May-12 17:42 
GeneralRe: A Layout Question, And A Bit More Pin
Gerry Schmitz21-May-12 21:02
mveGerry Schmitz21-May-12 21:02 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright23-May-12 20:13
professionalRoger Wright23-May-12 20:13 
QuestionRow Not Found Or Changed Pin
Kevin Marois17-May-12 10:10
professionalKevin Marois17-May-12 10:10 
AnswerRe: Row Not Found Or Changed Pin
VJ Reddy17-May-12 21:22
VJ Reddy17-May-12 21:22 
Generalneed help Pin
Kurac117-May-12 9:09
Kurac117-May-12 9:09 
GeneralRe: need help Pin
Pete O'Hanlon17-May-12 9:13
mvePete O'Hanlon17-May-12 9:13 
GeneralRe: need help Pin
Kurac117-May-12 9:16
Kurac117-May-12 9:16 
GeneralRe: need help Pin
Pete O'Hanlon17-May-12 9:22
mvePete O'Hanlon17-May-12 9:22 
AnswerRe: need help Pin
Luc Pattyn17-May-12 11:57
sitebuilderLuc Pattyn17-May-12 11:57 
GeneralRe: need help Pin
fjdiewornncalwe17-May-12 11:16
professionalfjdiewornncalwe17-May-12 11:16 
QuestionNumericUpDown control increment value change Pin
Blubbo17-May-12 7:38
Blubbo17-May-12 7:38 
AnswerRe: NumericUpDown control increment value change Pin
OriginalGriff17-May-12 8:07
mveOriginalGriff17-May-12 8:07 
QuestionCannot Edit or Add Path to Reference File Pin
Xarzu17-May-12 6:47
Xarzu17-May-12 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.