Browse Source

deliverable versio

master
Christos Houtouridis 6 years ago
parent
commit
1165c7746f
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/gr/auth/ee/dsproject/node/Node89978445.java

+ 5
- 0
src/gr/auth/ee/dsproject/node/Node89978445.java View File

@@ -234,6 +234,11 @@ public class Node89978445
* @brief
* Static version of move validation to use outside of the class
* Check if the requested move for a node is valid
* @param node The node of interest
* @param move The move to check
* @return The hypothetical new position of pacman
* @arg The resulting position in maze if the move is valid.
* @arg If it is not valid return Globals.POSITION_FALSE
*/
public static int[] pacmanValidMove (Node89978445 node, int move) {
return node.pacmanValidMove (node.nodeXY, move);


Loading…
Cancel
Save