imdumb
This commit is contained in:
2
grid.js
2
grid.js
@@ -29,7 +29,7 @@ class Grid {
|
||||
fillFromStr(str, sep = "") { return this.fillFromArr(str.split("\n").map((line) => line.split(sep))) }
|
||||
|
||||
static fromArr(arr) { return new Grid(arr[0].length, arr.length).fillFromArr(arr) }
|
||||
static fromStr(str, sep = "") { return Grid.fromArr(str.split("\n").map((line) => line.split(sep)) }
|
||||
static fromStr(str, sep = "") { return Grid.fromArr(str.split("\n").map((line) => line.split(sep))) }
|
||||
|
||||
get(pt) {
|
||||
if (this.contains(pt)) {
|
||||
|
||||
Reference in New Issue
Block a user