Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
AnswerRe: Moving picture box with arrow key in vb.net while other controls are also in the same form Pin
Simon_Whale27-May-13 22:12
Simon_Whale27-May-13 22:12 
GeneralRe: Moving picture box with arrow key in vb.net while other controls are also in the same form Pin
lukeer28-May-13 0:18
lukeer28-May-13 0:18 
GeneralRe: Moving picture box with arrow key in vb.net while other controls are also in the same form Pin
Simon_Whale28-May-13 0:24
Simon_Whale28-May-13 0:24 
AnswerRe: Moving picture box with arrow key in vb.net while other controls are also in the same form Pin
lukeer28-May-13 0:20
lukeer28-May-13 0:20 
AnswerRe: Moving picture box with arrow key in vb.net while other controls are also in the same form Pin
Simon_Whale28-May-13 0:24
Simon_Whale28-May-13 0:24 
QuestionPuzzle Random Pin
Midnight Ahri27-May-13 20:28
Midnight Ahri27-May-13 20:28 
AnswerRe: Puzzle Random Pin
harold aptroot27-May-13 20:58
harold aptroot27-May-13 20:58 
AnswerRe: Puzzle Random Pin
OriginalGriff27-May-13 21:32
mveOriginalGriff27-May-13 21:32 
There are a couple of ways to randomise it:
1) Insert each piece of the puzzle at a random location on the board, by using the random number generator to specify the location. This is quick to generate, but as Harold says, it can generate puzzles that can't be solved - you need a post-processing step to ensure that it can.
2) Use the random number generator to generate a direction, and move the pieces that way, exactly as if the user had done so. You then repeat this a number of times to "scramble" the puzzle. This is slower to generate, but the result is always solvable, and it means that a "difficulty level" can be added very simply by changing the number of times the random move is implemented.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

GeneralRe: Puzzle Random Pin
harold aptroot27-May-13 21:43
harold aptroot27-May-13 21:43 
GeneralRe: Puzzle Random Pin
OriginalGriff27-May-13 21:58
mveOriginalGriff27-May-13 21:58 
GeneralRe: Puzzle Random Pin
harold aptroot27-May-13 22:13
harold aptroot27-May-13 22:13 
AnswerRe: Puzzle Random Pin
Midnight Ahri27-May-13 22:43
Midnight Ahri27-May-13 22:43 
QuestionC# add code to app for user to enter data Pin
classy_dog27-May-13 6:42
classy_dog27-May-13 6:42 
AnswerRe: C# add code to app for user to enter data Pin
Dave Kreskowiak27-May-13 7:07
mveDave Kreskowiak27-May-13 7:07 
AnswerRe: C# add code to app for user to enter data Pin
Richard MacCutchan27-May-13 7:23
mveRichard MacCutchan27-May-13 7:23 
QuestionC# linq to sql default appears Pin
classy_dog26-May-13 16:16
classy_dog26-May-13 16:16 
AnswerRe: C# linq to sql default appears Pin
Dave Kreskowiak26-May-13 18:43
mveDave Kreskowiak26-May-13 18:43 
GeneralRe: C# linq to sql default appears Pin
classy_dog27-May-13 6:41
classy_dog27-May-13 6:41 
GeneralRe: C# linq to sql default appears Pin
Dave Kreskowiak27-May-13 7:03
mveDave Kreskowiak27-May-13 7:03 
QuestionC# convert dll to be used as an api Pin
classy_dog26-May-13 12:05
classy_dog26-May-13 12:05 
AnswerRe: C# convert dll to be used as an api Pin
Garth J Lancaster26-May-13 13:06
professionalGarth J Lancaster26-May-13 13:06 
AnswerRe: C# convert dll to be used as an api Pin
Richard MacCutchan26-May-13 21:54
mveRichard MacCutchan26-May-13 21:54 
QuestionFinding Orphaned Files Pin
Jonathan Clegg26-May-13 10:15
Jonathan Clegg26-May-13 10:15 
AnswerRe: Finding Orphaned Files Pin
Mycroft Holmes26-May-13 12:38
professionalMycroft Holmes26-May-13 12:38 
AnswerRe: Finding Orphaned Files Pin
Garth J Lancaster26-May-13 12:43
professionalGarth J Lancaster26-May-13 12:43 

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.