Go to file
2017-04-28 17:29:22 +02:00
examples use setViewOptions over viewAs 2017-04-28 16:53:08 +02:00
src removed trace 2017-04-28 16:53:53 +02:00
third-party added anaglyph view 2017-04-07 23:28:27 +02:00
.gitignore ignore npm-debug.log 2017-04-28 17:29:22 +02:00
.npmignore packaged for publishing 2017-04-27 07:14:02 +02:00
AGPL-3.0.txt initial commit 2017-03-29 17:30:37 +02:00
CONTRIBUTING.md initial commit 2017-03-29 17:30:37 +02:00
COPYING.md initial commit 2017-03-29 17:30:37 +02:00
favicon.ico added favicon for running browser examples 2017-04-04 23:35:55 +02:00
gulpfile.js packaged for publishing 2017-04-27 07:14:02 +02:00
package.json version to 0.9.2 2017-04-28 16:32:46 +02:00
README.md updated demo links 2017-04-07 01:29:15 +02:00

Warning: This is work in progress, APIs are subject to changes until Jocly is released as version 1.0.0

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.

Demos

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

Building

  • install the node.js environment (using nvm is probably a good idea)
  • install gulp: npm install -g gulp
  • install git
  • clone Jocly from github: git clone https://github.com/mi-g/jocly.git
  • enter the jocly directory
  • download required modules: npm install
  • build: gulp build
  • dist/browser contains the javascript library to build web applications, dist/node is the module to be used for node.js applications

Using Jocly in a Web page

After building Jocly, copy the dist/browser/ directory as jocly/ into your project filesystem.

Insert this line to your HTML source code:

<script src="jocly/jocly.js"></script>

You are now ready to use the Jocly API through the Jocly global object.

Using Jocly in a node.js application

After building Jocly, the dist/node/ directory as the Jocly module:

const Jocly = require("../jocly/dist/node");

Or, you can figure out how to use npm link and just do:

const Jocly = require("jocly");

You are now ready to use the Jocly API through the Jocly entry point.

API Documentation

Jocly offers two distinct APIs: