@jspsych-contrib/plugin-tangram-game
v1.0.0
Published
A child-friendly tangram game with click-and-click interface and potential for custom puzzles
Downloads
93
Readme
plugin-tangram-game
Overview
A child-friendly tangram game with click-and-click interface and potential for custom puzzles

Loading
In browser
<script src="https://unpkg.com/@jspsych-contrib/plugin-tangram-game">Via NPM
npm install @jspsych-contrib/plugin-tangram-gameCompatibility
@jspsych-contrib/plugin-tangram-game requires jsPsych v8.0.0 or later.
Documentation
See documentation
Author / Citation
How to build, run, and release
From the plugin-tangram-game directory, we can install dependencies and build using npm from Node.js.
npm i
npm run buildYou will need to run a webserver to preview the game locally. For example, using Node.js's http-server.
http-server -c10Then go to http://127.0.0.1:8080/examples/example1.html or http://127.0.0.1:8000/examples/example2.html in your browser.
Alternatively, if you're using VSCode you can install the Live Server extension. this will also act as a web server for running.
Run changeset to create a new release. The version number is stored in plugin-tangram.js and packages.json
npm run changeset