return width * y + x; | return width * y + x; | ||||
} | } | ||||
//resets the list of currently planned moves to be empty. intended for when a change in information necessitates an immediate change in plans | |||||
private void resetMoves() | |||||
{ | |||||
moves = ""; | |||||
} | |||||
//sets several variables based on the bot's current position that help with navigating | //sets several variables based on the bot's current position that help with navigating | ||||
private void checkBarriers(View view) | private void checkBarriers(View view) |