Skip to content

rholop/RobotMaze

Repository files navigation


RobotMaze

authors: Rowan Holop and Mel Mccord

The source code directory contains the following files:

  • Robot.java: the Abstract Robot Class, defines the methods other Robots inherit
  • Bob.java: the Bob robot that searches for Alice
  • Alice.java: the robot at the end
  • ScientistRobot.java: scientist robot
  • DoctorRobot.java: doctor robot
  • PolicemanRobot.java: policeman robot
  • StudentRobot.java: student robot
  • MazeRobotFactory.java: Factory class that supplies robots to RobotMaze.java
  • Client.java: Facade class for simple usability
  • RobotMaze.java: Maze generator and solver - code for maze generation and solving based on:
  • StdDraw.java: Drawing class taken from:

Instructions:

  • Put all files in the same directory.
  • Run Client.java with a filename in the commandline.
    • Example: java MyProgram myfile.type

Note: Program will read the first int of the file and create a maze size (first int * first int).

About

Object-Oriented Design project. Maze built in java, populates a random number of robots and tries to find a path around the robots to solve the maze.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages