Kirkq

Super Mario RPG: Bowser Door Ball Puzzle

Jul 31st, 2014
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. Hi all, I did a rather lengthy simulation of the SMRPG bowser door puzzle where you kick the cannonballs.
  2.  
  3. I came up with 3 solid solutions (coincidentally similar) that were estimated to be about 10-16 frames ahead of all the rest when evaluated by my algorithm.
  4.  
  5. Fun Fact: There are 210422 solutions. They take up 14.3 MB in a text file.
  6.  
  7. The estimation of Mario's movement around the cannonballs is a bit hackish, I basically assigned a point where you would stand on each side of the ball, which does not account for everything. I do think the solution the code found is probably very good, if not possibly the best.
  8.  
  9. It's somewhat possible I did something stupid in my code, but I think it generated a very solid solution, so it's probably mostly correct. I'll post the code eventually after I clean it up, so others can review and tweak the movement algorithm if they want.
  10.  
  11. - Kirkq
  12.  
  13. The grid, with labeled cannonballs (2 is destroyed to start with) Kicks are based on the position a ball is currently in.
  14.  
  15. 0 1 2* 3
  16. 4 5 6 7
  17. 8 9 10 11
  18. 12 13 14 15
  19.  
  20. 1: Possibly Best (515 frames of running as evaluated by the algorithm, ideally this translates to real time, but no idea)
  21.  
  22. 10 UP
  23. 4 RIGHT
  24. 12 UP
  25. 13 UP
  26. 1 DOWN
  27. 3 LEFT
  28. 7 LEFT
  29. 15 LEFT
  30. 0 RIGHT
  31. 4 RIGHT
  32. 13 UP
  33. 5 RIGHT
  34. 11 UP
  35. 3 LEFT
  36.  
  37. 2: (519 frames of running as evaluated by the algorithm)
  38.  
  39. 10 UP
  40. 4 RIGHT
  41. 12 UP
  42. 13 UP
  43. 15 LEFT
  44. 1 DOWN
  45. 3 LEFT
  46. 7 LEFT
  47. 0 RIGHT
  48. 4 RIGHT
  49. 13 UP
  50. 5 RIGHT
  51. 11 UP
  52. 3 LEFT
  53.  
  54. 3: (521 frames of running as evaluated by the algorithm)
  55.  
  56. 10 UP
  57. 4 RIGHT
  58. 12 UP
  59. 13 UP
  60. 15 LEFT
  61. 1 DOWN
  62. 7 LEFT
  63. 3 LEFT
  64. 0 RIGHT
  65. 4 RIGHT
  66. 13 UP
  67. 5 RIGHT
  68. 11 UP
  69. 3 LEFT
  70.  
  71. 4: Worst Solution A (979)
  72.  
  73. 0 RIGHT
  74. 8 UP
  75. 6 LEFT
  76. 13 UP
  77. 3 LEFT
  78. 4 RIGHT
  79. 15 LEFT
  80. 0 RIGHT
  81. 11 LEFT
  82. 12 RIGHT
  83. 2 DOWN
  84. 14 UP
  85. 7 LEFT
  86. 9 UP
  87.  
  88. 5: Worst Solution B (979)
  89.  
  90. 0 RIGHT
  91. 3 LEFT
  92. 8 UP
  93. 6 LEFT
  94. 13 UP
  95. 0 RIGHT
  96. 15 LEFT
  97. 4 RIGHT
  98. 11 LEFT
  99. 12 RIGHT
  100. 2 DOWN
  101. 14 UP
  102. 7 LEFT
  103. 9 UP
Advertisement
Add Comment
Please, Sign In to add comment