This commit is contained in:
Wojciech Łukasik 2020-04-28 14:00:39 +02:00
parent c0201f4a81
commit da71a683f4
2 changed files with 3 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

View File

@ -327,7 +327,7 @@ function showBoard(board){
if(board[y][x].getIsShelf())
document.getElementById("row-" + y).innerHTML += "<div class='regal2' id=" + x + "-" + y + "> </div>"
else
document.getElementById("row-" + y).innerHTML += "<div class='field' id=" + x + "-" + y + "> </div>"
document.getElementById("row-" + y).innerHTML += "<div class='field' id=" + x + "-" + y + ">"+ board[y][x].costOfTravel + "</div>"
}
}
}
@ -350,9 +350,7 @@ let agent = new Agent(0,0, 'Right');
function start(){
showBoard(board);
agent.showAgent();
console.log(getDistance(2,1,0,3))
console.log(board);
}