View Single Post
Old Sep 19th, 2004, 4:27 AM   #11
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
I put a randomizer in the code to randomly go through the moves to give a sense of automation... but it is definitely a poor way to do it, that part could definitely use some work... but I think I've grown bored with it... so I will see what other people come up with.

Just to give you a few hints... make a struct to hold maze multi-dimensional array, location of mouse and cheese, etc. Here are some of my function declarations, this should give you an idea of whay you may need.:

void ReadMaze (string mazeFile);
void WriteMaze (string mazeFile, maze m);
void FindRatAndCheese(string a[MAX][MAX]);
void DisplayMaze (string a[MAX][MAX], int r, int c);
void PopulateMaze(string a[MAX][MAX], int r, int c);
int MoveMouse (string direction);
int RandomRange(int lowest_number, int highest_number);
void CopyArray(string source[MAX][MAX], string dest[MAX][MAX]);
void PlayHuman (void);
void PlayComputer (void);
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote