pureboard

pureboard

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release

A library for creating multiplayer boardgames

Overview

npm install pureboard

pureboard is a library that allows for easy implementation of multiplayer games, by replicating actions on a state. It's designed for boardgame-like games, but can be used for other projects. It uses zustand for state management, so replicated state on client can be easily used in a React project.

Usage

API

See example directory for example of a online multiplayer connect4 game.

  1. Run npm install in root directory
  2. Run npm install in the example directory
  3. Run npm run dev in the example directory
  4. Open http://localhost:3000 in your browser