KineticGrid Engine技术文档阅览室
OPEN GAME AI COMMONS

0.1.0
ZERO DEP.

KINETICGRID / TECHNICAL OVERVIEW01

02

03

DETERMINISTIC CONTRACT

Snapshotv1 + Commandsordered + Δtfixed + Engineversion = Statesame

    {
      "version": 1,
      "clock": { "tick": 480 },
      "randomState": 319742901,
      "grid": { "width": 15 },
      "entities": [ ... ],
      "bombs": [ ... ]
    }
    04

    05

    import {
      FixedStepRunner,
      createBomberBattleWorld
    } from "@open-game-ai/kinetic-grid";
    
    const { world, player } =
      createBomberBattleWorld({
        seed: "lesson-01",
        level: 4
      });
    
    world.events.on("bombExploded",
      ({ cells }) => renderBlast(cells));
    
    world.queueCommand({
      type: "bomb",
      entityId: player.id
    });
    
    const checkpoint = world.snapshot();

    PACKAGE@open-game-ai/kinetic-grid

    06

    CORE OWNS

      ADAPTER OWNS

        07

        10 / 10

        08