forked from s444420/AL-2020
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())
|
if(board[y][x].getIsShelf())
|
||||||
document.getElementById("row-" + y).innerHTML += "<div class='regal2' id=" + x + "-" + y + "> </div>"
|
document.getElementById("row-" + y).innerHTML += "<div class='regal2' id=" + x + "-" + y + "> </div>"
|
||||||
else
|
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>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -349,10 +349,8 @@ let shelfs = createShelf();
|
|||||||
let agent = new Agent(0,0, 'Right');
|
let agent = new Agent(0,0, 'Right');
|
||||||
|
|
||||||
function start(){
|
function start(){
|
||||||
showBoard(board);
|
showBoard(board);
|
||||||
agent.showAgent();
|
console.log(board);
|
||||||
|
|
||||||
console.log(getDistance(2,1,0,3))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user