14 lines
241 B
TypeScript
14 lines
241 B
TypeScript
export default class Grid {
|
|
public row: number
|
|
public col: number
|
|
|
|
constructor(row: number, col: number) {
|
|
this.row = row
|
|
this.col = col
|
|
}
|
|
|
|
public static init(row: number, col: number) {
|
|
return new Grid(row, col)
|
|
}
|
|
}
|