Click here to Skip to main content
16,012,223 members
Home / Discussions / C#
   

C#

 
AnswerRe: Online Database? Pin
Colin Angus Mackay12-Nov-04 7:15
Colin Angus Mackay12-Nov-04 7:15 
GeneralC# form_load event Pin
Phil Finlay12-Nov-04 3:05
Phil Finlay12-Nov-04 3:05 
GeneralRe: C# form_load event Pin
Skynyrd12-Nov-04 4:09
Skynyrd12-Nov-04 4:09 
GeneralRe: C# form_load event Pin
Phil Finlay12-Nov-04 5:47
Phil Finlay12-Nov-04 5:47 
GeneralRe: C# form_load event Pin
Skynyrd12-Nov-04 10:26
Skynyrd12-Nov-04 10:26 
GeneralRe: C# form_load event Pin
Phil Finlay15-Nov-04 9:15
Phil Finlay15-Nov-04 9:15 
GeneralRichTextBox and DetectUrls Pin
benjymous12-Nov-04 1:51
benjymous12-Nov-04 1:51 
GeneralRe: Recursion (Can someone walk through cheese?) Pin
benjymous12-Nov-04 0:44
benjymous12-Nov-04 0:44 
Here's how I'd approach something like this

Give each cube a Visited property - set all of them to False initially

Create a member function something like this

Visit( target )
{
  this.Visited = true;

  if this == target
    You've found a route through!
    exit
  endif
  

  for each of the 6 neighbour
    if neighbour.visited == false 
      if neighbour.filled == false 
        neighbour.Visit( target )
      endif
    endif
  endfor

}


then assuming "Start" is the starting cube, and "End" is the ending cube, just call

Start.Visit( End )

As this looks like homework to me, I've written basic pseudocode, so you'll have to actually implement it yourself (and work out how to keep track of the successful route) Smile | :)

--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!

GeneralRe: Recursion (Can someone walk through cheese?) Pin
Sebastian Schneider12-Nov-04 1:58
Sebastian Schneider12-Nov-04 1:58 
GeneralI'd like to use IPicture class using C# Pin
Anonymous12-Nov-04 0:37
Anonymous12-Nov-04 0:37 
GeneralCreating a table from code Pin
vog_ro12-Nov-04 0:31
vog_ro12-Nov-04 0:31 
GeneralRe: Creating a table from code Pin
David Salter12-Nov-04 2:33
David Salter12-Nov-04 2:33 
GeneralRetrieving a website name by its IP address Pin
Majid Shahabfar11-Nov-04 23:11
Majid Shahabfar11-Nov-04 23:11 
GeneralRe: Retrieving a website name by its IP address Pin
Sebastian Schneider11-Nov-04 23:29
Sebastian Schneider11-Nov-04 23:29 
GeneralRe: Retrieving a website name by its IP address Pin
David Salter11-Nov-04 23:39
David Salter11-Nov-04 23:39 
GeneralRecursion (Can someone walk through cheese?) Pin
Sebastian Schneider11-Nov-04 22:28
Sebastian Schneider11-Nov-04 22:28 
GeneralRe: Recursion (Can someone walk through cheese?) Pin
yoaz11-Nov-04 22:46
yoaz11-Nov-04 22:46 
GeneralRe: Recursion (Can someone walk through cheese?) Pin
Sebastian Schneider11-Nov-04 23:01
Sebastian Schneider11-Nov-04 23:01 
GeneralRe: Recursion (Can someone walk through cheese?) Pin
yoaz12-Nov-04 0:42
yoaz12-Nov-04 0:42 
GeneralDrawing Forms Pin
pjholliday11-Nov-04 21:56
pjholliday11-Nov-04 21:56 
GeneralRe: Drawing Forms Pin
benjymous12-Nov-04 1:07
benjymous12-Nov-04 1:07 
GeneralWant to read the values of a System.__ComObject Pin
Reinier Beeckman11-Nov-04 21:45
Reinier Beeckman11-Nov-04 21:45 
GeneralRe: Want to read the values of a System.__ComObject Pin
Richard Deeming12-Nov-04 6:36
mveRichard Deeming12-Nov-04 6:36 
GeneralRe: Want to read the values of a System.__ComObject Pin
Reinier Beeckman16-Nov-04 21:10
Reinier Beeckman16-Nov-04 21:10 
GeneralRe: Want to read the values of a System.__ComObject Pin
Richard Deeming17-Nov-04 0:57
mveRichard Deeming17-Nov-04 0:57 

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.