Code Monkey home page Code Monkey logo

henkaku-karuta-yomimono's Introduction

henkaku-karuta-yomimono

p5.js sketch usage

Open or serve index.html.

The main branch is deployed to: https://alecrem.github.io/henkaku-karuta-yomimono/

The shuffle

Cards are shuffled before you start flipping through them, so that:

  • Cards will appear in a hopefully unpredictable order
  • Each card will appear exactly once

The standard way to offer a shuffle (and the one that is published on GitHub Pages for this repository) is producing a new shuffle each time the page is loaded.

For use cases where you want a number of clients to share a shuffle so they can take turns to read the cards, use the static shuffle method.

Static shuffle

You may want to fork this repository to add some changes to sketch.js, and then publish your own version to GitHub Pages or elsewhere.

  1. Produce a static shuffle by running node shuffler.js on your terminal
  2. Copy the resulting line of code (yomimonoOrder = [...) and paste it at the end of sketch.js

That is it. Now you only need to make index.html and sketch.js to your users.

henkaku-karuta-yomimono's People

Stargazers

RYU avatar

Watchers

Alejandro Cremades avatar  avatar

henkaku-karuta-yomimono's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.