A java PacMan game application for A.U.TH (data structures class)
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

53 Zeilen
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. }