DeterminismOptions beta
Interface of @v12-engine/engine/testing
ts
export interface DeterminismOptionsHow a game is checked for coming out the same (checkDeterminism)
Members
every
ts
every?: number;How often their whole state is compared, in ticks: every 30 when left out. Their fingerprints (worldFingerprint) are compared every tick, and the whole state at once where those differ, so that the tick said is the one they came apart at
from
ts
from?: number;A tick to save a third world at, and load a fourth from that save (loadWorld, with game): the game saved and the game loaded are run on side by side and compared. Not done when left out
rules
ts
rules?: Rules;The game the save is loaded with, for from
ticks
ts
ticks: number;How many ticks each world runs