A java PacMan game application for A.U.TH (data structures class)
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

53 linhas
819 B

  1. package gr.auth.ee.dsproject.node;
  2. import gr.auth.ee.dsproject.pacman.Room;
  3. import java.util.ArrayList;
  4. public class Node
  5. {
  6. int nodeX;
  7. int nodeY;
  8. int depth;
  9. int nodeMove;
  10. double nodeEvaluation;
  11. int[][] currentGhostPos;
  12. int[][] flagPos;
  13. boolean[] currentFlagStatus;
  14. Node parent;
  15. ArrayList<Node> children = new ArrayList<Node>();
  16. // Constructor
  17. public Node ()
  18. {
  19. // TODO Fill This
  20. }
  21. private int[][] findGhosts (Room[][] Maze)
  22. {
  23. // TODO Fill This
  24. }
  25. private int[][] findFlags (Room[][] Maze)
  26. {
  27. // TODO Fill This
  28. }
  29. private boolean[] checkFlags (Room[][] Maze)
  30. {
  31. // TODO Fill This
  32. }
  33. private double evaluate ()
  34. {
  35. double evaluation = (200 * Math.random()) - 100;
  36. return evaluation;
  37. }
  38. }