Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

bgb-engine

Latest version: v0.2.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: Pliskin
2 Versions
181 Downloads

Scan summary

bgb-engine was last scanned on 29 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.2.0.
  • Downloads: 181 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.0 LATEST 29 Nov 2026 No rules fired
0.1.0 1 Nov 2026 No rules fired

No rules fired in 0.2.0

Findings

Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

BoardGameBot Engine

An engine for asynchronous, turn-based board games played through Discord.

It has no Django, Discord or web dependency.

Features

  • A game contract for setup, actions, transitions, rendering, scoring and rules upgrades.
  • Turn-based play with pending choices and out-of-turn reactions.
  • Public, hidden and per-seat private state.
  • Deterministic seeded replay.
  • Cards, zones, counters and turn order.
  • An abstract base game (AbstractGame, RulesPack, deck/flow/prompt/reaction/view services) that provides the generic loops.
  • Named handler registries and event dispatch for game-specific abilities.
  • Grid boards, including hex and polygon cells with edge paths.
  • Graph boards.
  • Installable game plugins.
  • Card, Grid and Graph reference games.

Install

pip install bgb-engine

Use

from bgb_engine import GameDefinition, RenderModel

The reference games live in bgb_engine.examples:

from bgb_engine.examples import (CardSampleGame, GraphSampleGame,
                                GridSampleGame)

They are also installed as plugins for BoardGameBot through the boardgamebot.games entry-point group.

Handler registries

HandlerRegistry and EventDispatcher are optional building blocks for games with named abilities or reactions:

from bgb_engine import EventDispatcher, HandlerRegistry

actions = HandlerRegistry('action')
actions.register('build', build_handler)
actions.register('trade', trade_handler)

reactions = HandlerRegistry('reaction')
reactions.register('counter', counter_handler, events=('attack',))
EventDispatcher(reactions).dispatch('attack', 'handle', game, context)

The engine does not define what a handler looks like; a game supplies its own handler protocol and keeps the rule-specific behavior in the game package.

Write a game

Satisfy the GameDefinition protocol and declare an entry point in your package:

[project.entry-points."boardgamebot.games"]
my-game = "my_game:MyGame"

The entry point may return a definition instance, a class with a zero-argument constructor, or a zero-argument factory. The host validates the result and refuses duplicate slugs.

A non-active seat may act only while it holds an open pending choice. Return that seat's legal actions from legal_actions and open the choice with a PendingSpec in a transition. While a choice is open, the host treats only its seat as needed for board replacement, pings and private panels; otherwise the active seat is needed.

Abstract base game

AbstractGame implements the contract and owns the generic loops, so a game only supplies data and the rules that are genuinely its own. It is abstract: build_setup is required, and the other hooks have defaults.

A game subclasses it, supplies a RulesPack (a data/ directory with a rules.json manifest) or inline config, registers handler functions, and overrides the hooks it needs (active_actions, apply_active, board_view, seat_counters, status, is_over, scores):

from bgb_engine import AbstractGame

class MyGame(AbstractGame):
    slug = 'my-game'
    name = 'My Game'
    phases = ('play', 'finished')
    initial_phase_name = 'play'

    def build_setup(self, options, seats, seed):
        ...

The framework provides DeckManager (seeded draw, reshuffle and hand limits), FlowController (phases, seat rotation and the match_over outbox), PromptManager (pending choices), ReactionEngine (reaction windows) and ViewBuilder (seat, counter and pending views). The reference games are the worked examples.

RulesPack is the default data loader: a data/ directory with a rules.json manifest (players, phases, decks, abilities, board, scoring, config). AbstractGame calls load_data() so a game can build typed objects or registries from the pack; a game may also read files itself and ignore the pack.

Reference games

  • CardSampleGame: card hands, hidden state, counters and pending choices.
  • GridSampleGame: a grid board with hidden cells and scoring.
  • GraphSampleGame: a graph board with paths, tokens and a finish condition.

The rules for the reference games are in the main project documentation. A complete authoring guide is in the repository at docs/writing-a-game.md.

License

BoardGameBot Engine is released under the MIT License.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases bgb-engine

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229