Skip to content

nicolasjulioflores/maze-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazing Project

  • AMStartup intializes the communication with the server and get a port number in return that it sends to AmazingClient.c programs which are run from within it. Together with the port number, AMStartup also gets the Maze width and Maze height from the server and pass them to the AmazingClient.c process that it starts.

  • The AmazingCLient are starting using process through the means of forking and calling the execlp() function in all the cild processes to replace the child AMStartup program with an iinstant of AmazingClient. This is done within a loop to produce the needed number of client instances as specified by the user.

  • The Clients solve the maze using an algorithm of left wall following until they all reach the center. If an avatar reaches the center before others, it will wait at the center of the maze until all other avatars reach the center.

Assumptions

  • Server This program must be run on flume.cs.dartmouth.edu for the graphics to work (you must be logged in here). This is because the graphics use the log file produced by the server to produce the walls for the maze.

  • Must have a log folder (see first bullet in Compiling and Running).

Compiling and Running AMStartup

  • User must have a log/ directory. AMStartup and AmazingClient will prompt the user to create a log/ directory if a log/ directory is not valid, writeable, or just doesn't exist. log/ will hold all maze .log files

  • To solve the maze, one uses AMStartup.c by using the makefile. Typing make will compile both the AMStartup.c and the AmazingClient.c program in the current Amazing directory.

  • To execute the program one needs run only AMStartup.c by entering 4 arguments in this order: [./AMStartup] [nAvatars] [Difficulty] [Hostname]; with the hostname being flume.cs.dartmouth.edu

  • The number of Avatars (nAvatars) should be a positive number greater than 1, and the Difficulty should be between 0 to 9 (inclusive)

  • You also need to include a folder called logs and within logs, you need to include two folders called maze and logserver.

Negoska Team Members

  • Taringana Guranungo
  • Sharon Bian
  • Nick Flores

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published