Jocly is a library and set of tools to integrate boards games into Web environments. It comes with a large collection of abstract strategy games, 2D and 3D user interface, artificial intelligence to play against.
Controlled interface for playing Chess. Click Other Jocly games to switch to other games.
Simple human vs computer: Classic chess, Circular chess, Multi layers chess, Hexagonal chess, Chinese chess, Middle-age chess, Scrum
Or see and try all available games
JoclyBoard is a multi-platform desktop application based on Jocly and Electron.
npm install jocly
Insert this line to your HTML source code:
<script src="node_modules/jocly/dist/browser/jocly.js"></script>
You are now ready to use the Jocly API through the Jocly
global object.
const Jocly = require("jocly");
You are now ready to use the Jocly API through the Jocly
entry point.
npm install -g gulp
git clone https://github.com/mi-g/jocly.git
jocly
directorynpm install
gulp build
dist/browser
contains the javascript library to build web applications, dist/node
is the module to be used for node.js applicationsNotes:
gulp build watch
instead of gulp build
makes gulp start watching files after the build. Whenever a file is changed, a build is automatically generated--no-default-games
to prevent including the game modules from directory, and --modules <colon-separated-directories>
to specify additional game modules to include. For instance, gulp --no-default-games --modules src/games/chessbase:src/games/checkers build
will only generate distribution for Chess and checkers games--games
option. For instance, gulp --no-default-games --modules src/games/chessbase --games xiangqi:classic-chess build
only generates Jocly for Classic Chess and XiangQino-obsolete
option filters out the games marked as obsoleteJocly offers two distinct APIs: