engine

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDeck

func DefaultDeck() []domain.Card

DefaultDeck returns a curated set of Major Arcana cards adapted for IT and DevOps scenarios.

Types

type Config

type Config struct {
	Strict bool
}

Config defines execution flags and evaluation strictness for the engine.

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine implements the domain. Oracle interface to provide deterministic fate evaluations.

func New

func New(deck []domain.Card, cfg Config) *Engine

New creates a new Engine instance initialized with a given deck and configuration. If the provided deck is empty, it falls back to the DefaultDeck.

func (*Engine) Divine

func (e *Engine) Divine(ctx context.Context, seed string) (*domain.GateResult, error)

Divine draws a card based on a deterministic seed and evaluates the release status.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL