shapeOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The shape of a piece, from the sides it opens on.
インポート
import { shapeOf } from "@johnmorrisdotca/suido";
定義
function shapeOf(mask: number): Shape
引数
| 名前 | 型 | 説明 |
|---|---|---|
mask | number | A pipe mask: north 1, east 2, south 4 and west 8. |
戻り値
Shape
The shape of a piece, from the sides it opens on.
例
import { shapeOf } from "@johnmorrisdotca/suido";
console.log(shapeOf(3));elbow出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。