Reference · Game engine and table
hitotsuLaunchfunction
How many cards the launcher fires, from the seed and how many moves have been made: the same for the same game, never the same twice in a row.
Import it
import { hitotsuLaunch } from "@johnmorrisdotca/hitotsu";
Definition
function hitotsuLaunch(seed: number, moves: number, least: number, most: number): number
Parameters
| Name | Type | Description |
|---|---|---|
seed | number | The game's seed. |
moves | number | How many moves the game has had. |
least | number | The fewest cards. |
most | number | The most cards. |
Returns
number
A whole number from least to most.
Examples
import { hitotsuLaunch } from "@johnmorrisdotca/hitotsu";
console.log(hitotsuLaunch(42, 7, 1, 4));4What it prints (run when this page was built)