Click here to Skip to main content
15,917,928 members
Home / Discussions / C#
   

C#

 
GeneralRe: Does This Only Happen To Me? Pin
OriginalGriff19-May-12 2:20
mveOriginalGriff19-May-12 2:20 
GeneralRe: Does This Only Happen To Me? Pin
BillW3319-May-12 7:05
professionalBillW3319-May-12 7:05 
QuestionA Layout Question, And A Bit More Pin
Roger Wright17-May-12 19:47
professionalRoger Wright17-May-12 19:47 
AnswerRe: A Layout Question, And A Bit More Pin
Pete O'Hanlon17-May-12 23:19
mvePete O'Hanlon17-May-12 23:19 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright18-May-12 11:35
professionalRoger Wright18-May-12 11:35 
GeneralRe: A Layout Question, And A Bit More Pin
Pete O'Hanlon18-May-12 22:38
mvePete O'Hanlon18-May-12 22:38 
GeneralRe: A Layout Question, And A Bit More Pin
GuyThiebaut21-May-12 1:39
professionalGuyThiebaut21-May-12 1:39 
GeneralRe: A Layout Question, And A Bit More Pin
Pete O'Hanlon21-May-12 2:02
mvePete O'Hanlon21-May-12 2:02 
AnswerRe: A Layout Question, And A Bit More Pin
PIEBALDconsult18-May-12 5:18
mvePIEBALDconsult18-May-12 5:18 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright18-May-12 8:47
professionalRoger Wright18-May-12 8:47 
GeneralRe: A Layout Question, And A Bit More Pin
PIEBALDconsult18-May-12 9:12
mvePIEBALDconsult18-May-12 9:12 
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 

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.