(w, h)
| 43 | |
| 44 | class Grid { |
| 45 | constructor(w, h) { |
| 46 | this.w = w; |
| 47 | this.h = h; |
| 48 | this.cells = Array.from({ length: h }, () => Array(w).fill(' ')); |
| 49 | } |
| 50 | |
| 51 | put(x, y, char) { |
| 52 | if (x >= 0 && x < this.w && y >= 0 && y < this.h) { |
nothing calls this directly
no outgoing calls
no test coverage detected