Skip to content
open.games
open.games

open.games

open.games

A reusable game engine and kit for card, board, table-sport and arcade games, with computer players.

A game here is a set of pure functions over plain data: no framework, no server, no clock, no Math.random. The same seed and the same moves always give the same game, so it runs the same in a browser, on a server or in a worker thread, and a room can be rebuilt by replaying its moves. Multiplayer rooms, lobbies and tournaments live in open.rooms.

Pages#

  • Getting started: play a whole game from code, with computer players.
  • The games: all 79, with seats and rule presets.
  • The packages: what each of the five packages holds.
  • The game contract: TableGame, what a view is, and what the bots are handed.
  • Adding a game: how a card game, a board game, a table sport and a field game are each built.
  • Arcade games: games in real time, the tick that drives them, and scores that can be replayed.
  • Idle games: games that go by the clock on the wall and carry on while nobody is looking.
  • Clocks and deadlines: turn timers, a game's own clock, and how they replay.
  • Releasing: how a version reaches npm.
  • For agents: the skills in .agents/ that let a coding agent use and maintain this.

Status#

Version 0.1, with the API still settling. MIT.

View this page's source