WandererXII / shogiground

Mobile/Web shogi UI for lishogi.org
https://lishogi.org
GNU General Public License v3.0
15 stars 6 forks source link
board javascript lishogi shogi typescript ui

Shogiground

Continuous Integration npm

Shogiground

Shogiground is a free/libre open source shogi UI forked from Chessground rewritten for lishogi.org. It targets modern browsers, as well as mobile development using Cordova.

License

Shogiground is distributed under the GPL-3.0 license (or any later version, at your option). When you use Shogiground for your website, your combined work may be distributed only under the GPL. You must release your source code to the users of your website.

Please read more about GPL for JavaScript on greendrake.info/#nfy0.

Demos

Features

Shogiground

Shogiground is designed to fulfill all lishogi.org web and mobile apps needs, so it is pretty featureful.

Installation

npm install --save shogiground

Usage

const Shogiground = require('shogiground').Shogiground;

const config = {
  sfen: {
    board: 'lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL',
  },
};
const ground = Shogiground(config, { board: document.body });

Documentation

Development

Install build dependencies:

npm install

To build the node module:

npm run compile -- --watch

To build the standalone:

npm run dist -- --watch