chesslike-board

Presentation layer for chess-like games.

Usage no npm install needed!

<script type="module">
  import chesslikeBoard from 'https://cdn.skypack.dev/chesslike-board';
</script>

README

chesslike-board

Presentation layer for chess-like games.

Getting Started: in a web page

Current major browsers are supported but not Internet Explorer (edit targets in rollup.config.js and run npm run build to change this).

Load the script from the CDN:

<script src="https://cdn.jsdelivr.net/npm/chesslike-board@0.1"></script>

The module is exported as ChesslikeBoard:

<script>
  document.write(ChesslikeBoard.version);
</script>

Getting Started: in Node.js

Node >= 10 is currently supported in the distributed modules.

Install from npm:

$ npm i chesslike-board

Require CommonJS module:

// Default should work...
const ChesslikeBoard = require('chesslike-board');
// ...or specify CommonJS module.
const ChesslikeBoard = require('chesslike-board/dist/cjs');

or import as an ES6 module:

// Default should work...
import ChesslikeBoard from 'chesslike-board';
// ...or specify ES6 module.
import ChesslikeBoard from 'chesslike-board/dist/esm';

Using

Documentation

Contributing

Important information

Copyright 2021 pbuk and distributed under the MIT License. See [LICENSE] for more information.

Icons included from:

Contact

Please contact by raising an issue on GitHub; all comments and suggestions are welcome.