13 lines
299 B
TypeScript
13 lines
299 B
TypeScript
import { Game } from './game';
|
|
|
|
export * from './types';
|
|
export * from './rules';
|
|
export * from './game';
|
|
export * from './actions';
|
|
|
|
import { rules, type GameRulesOptions } from './rulesets/rules';
|
|
|
|
export function makeGame(options: GameRulesOptions): Game {
|
|
return new Game(rules(options))
|
|
};
|