otherStonefunction
The other stone colour.
Import it
import { otherStone } from "@johnmorrisdotca/narabe";
Definition
function otherStone(stone: Stone): Stone
Parameters
| Name | Type | Description |
|---|---|---|
stone | Stone | The black or white colour being examined. |
Returns
Stone
The other stone colour.
Examples
import { otherStone } from "@johnmorrisdotca/narabe";
console.log(otherStone("black"));whiteWhat it prints (run when this page was built)