@eigeninteractive/kernel
v0.6.0
Published
The pure decision core of the EigenInteractive engine: given a game, state, roster and intent it returns a commit plan or a rejection. No I/O, no platform APIs.
Maintainers
Readme
@eigeninteractive/kernel
The pure decision core of the EigenInteractive engine.
Given a game, its state, the roster and an intent, commit() returns a commit
plan or a rejection. It touches no platform API and reads no clock, so it is
exhaustively unit-testable and behaves identically in every environment.
import { commit } from "@eigeninteractive/kernel";
const plan = commit({ game, state, roster, intent, now, rules, staleViews });It owns timing and grace, the same-view rule, observation fan-out, RNG derivation and the rating math.
Documentation
Full documentation: https://eigeninteractive.com/docs/how-it-works/kernel
License
MIT © EigenInteractive
