Skip to content

Commit

Permalink
Change button display from Greedy Best First Search to Greedy BeFS
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennard Schober committed May 2, 2024
1 parent 87009d6 commit 2c133e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/scripts2.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ document.querySelectorAll('.dropdown-item').forEach(item => {
elem.innerText = "stop!";
toggleVisualizeButton();
globalAlgo = "greedyBestFirst";
elem.innerText = "Greedy Best First Search";
elem.innerText = "Greedy BeFS";
visBtnText = elem.innerText;
break;
case "genEmpty":
Expand Down Expand Up @@ -457,7 +457,7 @@ function toggleVisualizeButton() {
var elem = document.getElementById("visualizeButton");

if (elem.innerText == "BFS" || elem.innerText == "DFS" || elem.innerText == "A*"
|| elem.innerText == "Dijkstra" || elem.innerText == "Greedy Best First Search") {
|| elem.innerText == "Dijkstra" || elem.innerText == "Greedy BeFS") {
visBtnText = elem.innerText;
elem.innerText = "stop!";
elem.style.backgroundColor = "red";
Expand Down

0 comments on commit 2c133e3

Please sign in to comment.