generates a bot that randomly selects coordinates from a 10x10 matrix
let matrix = [] for (i = 0; i < 10; i++) { matrix[i] = [] for (j = 0; j < 10; j++) { matrix[i][j] = Math.floor(Math.random() * 2) } } function findBot() { let botCoordinates = matrix[Math.floor(Math.random() * 10)][Math.floor(Math.random() * 10)] return botCoordinates } findBot()