Commit Graph
11 Commits
Author SHA1 Message Date
regar42 3520bfc4ce Merge branch 'mvc'
Here's the list of functionalities added to the project :
  - Add a user interface with black, white, green and red squares to
    respectively represent empty, wall, departure and arrival boxes.
  - Add a File menu containing :
    - A quit option, who takes cares of whether the maze has been
      modified or not (*Keystroke : Ctrl-Q*)
    - A Load Maze option, which opens a file chooser dialog in order to
      load another maze (*Keystroke : Ctrl-O*)
    - A Save Maze option in order to save the maze (*Keystroke : Ctrl-S*)
    - A Save Maze As option in order to save the maze in a different
      location (*Keystroke : Ctrl-Maj-S*)
  - A Maze menu containing :
    - An option to draw the shortest path, which takes care of whether
      a path exists or not
    - An option to animate the path drawing, which then waits for the
      user input to draw the next step of the maze
    - An option to clear the shortest path
    - An option to make a new clear maze which opens a dialog containing
      two spinners (in order to select the number of lines and rows of
      the maze), and an OK button once the user has finished selecting
      the dimensions (*Keystroke : Ctrl-N*)
    - An option to clear the maze (*Keystroke : Ctrl-D*)
    - An option to add a row at the end of the maze
    - An option to add a line at the end of the maze
    - An option to delete a row at the end of the maze
    - An option to delete a line at the end of the maze
  - A context menu with :
    - Options to toggle the types of boxes
    - Options to add/delete a row/line at the given position
  - A feature which toggles the box type between wall and empty when you
    left-click on the box
2018-01-03 12:03:09 +01:00
antograb e7c2ecb353 Add path drawing interaction & animation feature 2018-01-02 23:11:36 +01:00
antograb c7134e9e91 Fix infinite path in Dijkstra algorithm 2017-12-27 15:13:40 +01:00
regar42 e8896556bc Normalize code and fix saveToTextFile
* Normalize spaces and blank lines according to Java Code Conventions
  from Java SE 8
* Wrap code to 80 characters per line (Java Code Conventions for Java SE
  8)
* Fix saveToTextFile() in Maze : same confusion that was fixed in bc1886ca
  for initFromTextFile() (x et y coordinates were respectively used as y
  and x)
2017-12-14 21:53:49 +01:00
regar42 b59a8436dd Merge branch 'fixUnneededCode' into lastDijsktraClasses 2017-12-10 17:48:34 +01:00
antograb d836c2c9f0 Remove unneeded setters in Box.java
Remove compareTo in Box.java and VertexInterface
2017-12-10 17:21:26 +01:00
antograb d46b3c3b99 Fix List to ArrayList
Add toString method for Box
Add code to print the shortest path for this particular case.
2017-12-10 17:08:54 +01:00
regar42 4d1d3b39a2 Add documentation and fix Javadoc warnings
* Describe the aim of the interfaces
* Explain what are the box inherited from Box
* Fix Javadoc warnings by specifying the parameters and returns of the
  methods in the interfaces
2017-12-10 15:27:57 +01:00
antograb 9d34134943 Added documentation for modified interfaces. 2017-12-07 11:51:14 +01:00
antograb d7368f7cda Fixed last dijkstra classes. Algorithm working for squared maze but bugs for non square mazes. 2017-12-06 22:30:58 +01:00
antograb acab098ea1 Added packages, Previous class and ASet class. 2017-12-03 20:41:05 +01:00