Reference · Rules, games and records
otherSidefunction
The other side.
Import it
import { otherSide } from "@johnmorrisdotca/sugoroku";
Definition
function otherSide(side: Side): Side
Parameters
| Name | Type | Description |
|---|---|---|
side | Side | The side being examined: white or black. |
Returns
Side
The other side.
Examples
import { otherSide } from "@johnmorrisdotca/sugoroku";
console.log(otherSide("white"));blackWhat it prints (run when this page was built)