advanceTicksfunction
Advances nothing: a placement is whole the moment it is made. There so a host can treat this game as it treats the falling ones.
Import it
import { advanceTicks } from "@johnmorrisdotca/houseki/tsumiki";
Definition
function advanceTicks(state: GameState, ticks: number): ActionResult
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The game. |
ticks | number | How many ticks would pass. |
Returns
ActionResult
The same state: nothing in this game moves on its own.
Examples
import { advanceTicks, createGame } from "@johnmorrisdotca/houseki/tsumiki";
console.log(advanceTicks(createGame({ seed: "demo" }), 1).accepted);trueWhat it prints (run when this page was built)