Jump to content

Any C++ programmers out there?


Kania2k1

Recommended Posts

Posted

The project I'm working on consists or reading in a square maze of 1's and O's and finding my way though it.  1's are walls and 0's are the only way to move.  You can only move N, S, E, W, and not diagonal.  A sample maze would be;

Start->00110

         10010

         11001

         11000

         11110<-Finish.

 

We have to read in the maze,(code finished), search the path for 1's and 0's see if the space is not a 1, within the maze bounds, and on the path.  RECURSIVELY!!!  Any help would be appreciated.  Thanks in advance!

Posted

Hey, I did some snooping around and I found this for you, hope it helps...It has a link to download the files for a maze running program towards the bottom along with some helpful instruction, good luck.

 

C++ Maze

Posted

Thanks for the link AJ!  I actually found that one also through google.  And secondly, it's a Tennessee "T".  Screw the longhorns!! LOL!  Truthfully I get that a lot.  Everyone in NY thinks the only state that begins with a T is Texas!  FOOLS!  Thanks for the help anyway.  I did get the program working though.  Only 200 lines of code.  The one I'm working on now is looking like a 400 liner!  gonna be fun.  I HATE CODE!

Posted

Im sorry, your pic links said UT which I just assume to be University of Texas, I saw the big T minus the U, which puzzled me, sorry for the mistake.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Forum Statistics

    250.4k
    Total Topics
    2.7m
    Total Posts
  • Member Statistics

    342,799
    Total Members
    8,960
    Most Online
    jl6690506
    Newest Member
    jl6690506
    Joined
  • Who's Online   4 Members, 0 Anonymous, 518 Guests (See full list)

×
×
  • Create New...