zmiany
This commit is contained in:
parent
c0201f4a81
commit
da71a683f4
Binary file not shown.
Before Width: | Height: | Size: 36 KiB |
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user