A game containing elements of artificial intelligence, of course, requires an algorithm in its application. One example of a game that includes elements of artificial intelligence is the Labyrinth game. Maze is a simple educational game. This game is known as finding a way out of the maze to arrive at a predetermined goal. The labyrinth encounters numerous obstacles along the way, such as dead ends and parapets, to reach the target location. In this game, players are required to think logically about how to find the right maze path. The obstacle faced in this game is that sometimes players have difficulty finding a way out, especially if the game level has reached a high level in the process of finding a way out. To solve this problem, a graph tracing technique is needed. The Breadth-First Search (BFS) strategy can be used in conjunction with various graph search algorithms. An example of a broad search method is the Breadth-First Search Algorithm, which works by visiting nodes at level n first before moving on to nodes at level n+1. The advantage of the Breadth-First Search algorithm is that it can find a solution as the shortest path and find the minimum solution if there is more than one solution. This study will discuss how to find a path for the Labyrinth using the BFS algorithm. The result of applying this BFS algorithm is the shortest route solution raised so that the Labyrinth can arrive at the destination point through the route provided.
CITATION STYLE
Bonifacius Vicky Indriyono, & Widyatmoko. (2021). Optimization of Breadth-First Search Algorithm for Path Solutions in Mazyin Games. International Journal of Artificial Intelligence & Robotics (IJAIR), 3(2), 58–66. https://doi.org/10.25139/ijair.v3i2.4256
Mendeley helps you to discover research relevant for your work.