api.module
README.md
boardKit.api
The one interface to boardKit: local BK = require("boardKit.api"). BK.Board { name, track, spaces, theme, pawns, movement, rules, seats, seed, position, ... } spawns a synced multiplayer race board in a scene's build; BK.board(name) finds the live board (:move(seat, n), :choose(seat, way), :state(), :pawnPosition(seat), :spacePosition(i), :setTurn(seat), :restart(), :sit, :freeSeat(seat), :set(key, value), :isBusy()); BK.rules(name, hooks) adds rule hooks the host runs (canMove, onLand, onCard, onTurn, onWin, onMove); BK.on(event, fn) listens to turn, moved, landed, arrived, skip, drawCard, won and more; BK.game{...} makes a pure game with no board; the catalog BK.CATALOG / BK.variants{ kind, tag, search } / BK.normalize; and the pure modules BK.Tracks, BK.Spaces, BK.Rules, BK.Fortune, BK.Themes, BK.Pawns.