Reference · Rules, tiles and records
squareAtfunction
A square's name, "row,col".
Import it
import { squareAt } from "@johnmorrisdotca/kumimoji";
Definition
function squareAt(row: number, col: number): string
Parameters
| Name | Type | Description |
|---|---|---|
row | number | The integer row coordinate, which may be negative. |
col | number | The integer column coordinate, which may be negative. |
Returns
string
A square's name, "row,col".
Examples
import { squareAt } from "@johnmorrisdotca/kumimoji";
console.log(squareAt(-1,2));-1,2What it prints (run when this page was built)