(gameBoard)
| 12 | } |
| 13 | |
| 14 | export function draw(gameBoard) { |
| 15 | const foodElement = document.createElement('div') |
| 16 | foodElement.style.gridRowStart = food.y |
| 17 | foodElement.style.gridColumnStart = food.x |
| 18 | foodElement.classList.add('food') |
| 19 | gameBoard.appendChild(foodElement) |
| 20 | } |
| 21 | |
| 22 | function getRandomFoodPosition() { |
| 23 | let newFoodPosition |
nothing calls this directly
no outgoing calls
no test coverage detected