A java PacMan game application for A.U.TH (data structures class)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.8 KiB

  1. /**
  2. * @file Globals.java
  3. * @brief
  4. * File containing the Globals class, a helper class for the
  5. * vector based evaluation system
  6. *
  7. * @author Christos Choutouridis 8997 cchoutou@ece.auth.gr
  8. * @author Konstantina Tsechelidou 8445 konstsec@ece.auth.gr
  9. */
  10. package gr.auth.ee.dsproject.node;
  11. /**
  12. * @class Globals
  13. * @brief
  14. * Contains constants and factors to trick
  15. * the Node evaluation algorithm
  16. */
  17. public class Globals {
  18. /*
  19. * Global constants
  20. */
  21. public static final int NO_PLACE = -1; // out of region square
  22. //public static final int NO_MOVE = -1;
  23. public static final int INVALID_MOVE = -1; // invalid move marker
  24. public static final int EVAL_MAX = 100; // out max evaluation value
  25. public static final int EVAL_MIN = -100; // our minimum evaluation value
  26. public static final int NO_EVAL = EVAL_MIN-1; // mark the invalid move or no evaluation
  27. /*
  28. * Evaluation settings
  29. */
  30. /**
  31. * Mixing factor for the minimum distance for life algorithm
  32. */
  33. public static final double EVAL_LIFE_MIN_FACTOR = 0.8;
  34. /**
  35. * mixing factor for the average distances for live algorithm
  36. * @note the factor is the complementary of the EVAL_LIFE_MIN_FACTOR
  37. */
  38. public static final double EVAL_LIFE_AVER_FACTOR = 1 - EVAL_LIFE_MIN_FACTOR;
  39. /**
  40. * Evaluation mixing factor representing how mutch of life will be
  41. * in the final evaluation value
  42. */
  43. public static final double EVAL_LIFE_FACTOR = 0.35;
  44. /**
  45. * Evaluation mixing factor representing how mutch of goal will be
  46. * in the final evaluation value
  47. * @note the factor is the complementary of the EVAL_LIFE_FACTOR
  48. */
  49. public static final double EVAL_GOAL_FACTOR = 1 - EVAL_LIFE_FACTOR;
  50. }