worldFingerprint beta
Function of @v12-engine/engine/testing
export declare function worldFingerprint(world: World): string;A quick hash of what a game that came apart differs in first: the tick, the random state, each player's resources, upgrades and supply, and each entity's id, type, owner, place, facing, health, mana, whether it lives, its orders (how many, and the first's kind and target), its buffs (which, and the time left) and its attack's cooldown and swing. Read off the world as it is, with no save: 0.4 ms at 1000 units a side, where worldHash takes 66. What a replay of commands keeps every few seconds and checks as it plays (recordCommands), and what checkDeterminism compares every tick, for the tick a game came apart at; what it leaves out (components, areas, the fog) the whole state, compared every so often, has