Course: Data Science and Big Data - Maze Solver Assignment

Verified

Added on  2019/09/20

|1
|263
|147
Homework Assignment
AI Summary
This assignment involves creating a maze solver using programming. The student is expected to implement functions to move through the maze, check for completion, and interact with the environment. The solution includes functions like `getTotalKeys()`, `getCurrentKeys()`, `getNumSteps()`, `getCurrentPosition()`, `readMaze()`, `printMaze()`, `isComplete()`, `move()`, and `look()`. The assignment requires the student to understand and apply data structures and algorithms to navigate the maze efficiently. The provided solution demonstrates the implementation of these functions, enabling the user to solve the maze and understand the underlying concepts of data science and algorithmic problem-solving. The assignment is designed to enhance the student's understanding of Data Science and Big Data concepts by applying them in a practical context.
Document Page
#include <stdio.h>
int getTotalKeys();
int getCurrentKeys();
int getNumSteps(); // returns the number of steps which you have made so far.
Might be useful for debugging purposes.
void getCurrentPosition(int * arr); // this puts the player's row into arr[0],
and the player's column into arr[1].
void readMaze(); // points will be taken off if you use this.
void printMaze(); // prints the current maze. Might be useful for debugging.
int isComplete(); //returns 1 if the maze is complete, and 0 otherwise. Useful
for loop conditions
int move(int newRow, int newCol); // if possible, it moves the player to the
position specified. If not possible, it prints a handy error message
explaining what happened. You are definitely allowed to comment out the print
statements if you get tired of seeing the error messages.
int look(int newRow, int newCol); // if possible, it tells you what's in the
square you are looking at. It also returns the integer value of what is in the
square (see maze file explanation). If not possible, it prints a handy error
message explaining what happened. You are definitely allowed to comment out
the print statements if you get tired of seeing the error messages.
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser