Algoritma Fisher-Yates Shuffle dan Flood Fill sebagai Maze Generator pada Game Labirin

  • D.J. Owen Hoetama Universitas Multimedia Nusantara
  • Farica Perdana Putri Universitas Multimedia Nusantara
  • P.M. Winarno Universitas Multimedia Nusantara

Abstract

Maze game is an interesting game and used to spend time. However, in the maze game, the level used forthis game still uses static levels. Static levels make the maze shape stay the same if we play the same level. Thus, players will quickly feel bored because it finds the same complexity. Maze generator is a static level problem solution on the maze game. This research uses Fisher-Yates Shuffle algorithm and Flood Fill algorithm to make maze generator. Fisher-Yates Shuffle algorithm is used for wall position randomization and Flood Fill algorithm to keep the maze results to remain resolved. The results of the application implementation yielded 30 mazes and were tested using the Hamming Distance algorithm, yielding that the result of the maze formed is always different. The average percentage rate difference produced 48% each time the maze was formed. The results of the maze that was formed performed perfect maze checking with the result of 83.33% percentage.


Index Terms— Fisher-Yates Shuffle, Flood Fill, Maze
Generator, Hamming Distance

Downloads

Download data is not yet available.
Published
2019-03-19
How to Cite
Hoetama, D., Putri, F., & Winarno, P. (2019). Algoritma Fisher-Yates Shuffle dan Flood Fill sebagai Maze Generator pada Game Labirin. Ultima Computing : Jurnal Sistem Komputer, 10(2), 59-64. https://doi.org/https://doi.org/10.31937/sk.v10i2.1064