(screen: Screen, x: number, y: number)
| 458 | } |
| 459 | |
| 460 | export function isEmptyCellAt(screen: Screen, x: number, y: number): boolean { |
| 461 | if (x < 0 || y < 0 || x >= screen.width || y >= screen.height) return true |
| 462 | return isEmptyCellByIndex(screen, y * screen.width + x) |
| 463 | } |
| 464 | |
| 465 | /** |
| 466 | * Check if a Cell (view object) represents an empty cell. |
no test coverage detected