amidakuji

command module
v0.0.0-...-00971ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2018 License: MIT Imports: 24 Imported by: 0

README

AMIDA KUJI

MIT License Build Status Go Report Card Codacy Badge Coverage Status

Ghost Leg (Chinese: 畫鬼腳), known in Japan as Amidakuji (阿弥陀籤, "Amida lottery", so named because the paper was folded into a fan shape resembling Amida's halo) or in Korea as Sadaritagi (사다리타기, literally "ladder climbing"), is a method of lottery designed to create random pairings between two sets of any number of things, as long as the number of elements in each set is the same. This is often used to distribute things among people, where the number of things distributed is the same as the number of people. For instance, chores or prizes could be assigned fairly and randomly this way.

(Explanation from Wikipedia)


Examples

GIF1 GIF2
1 2
GIF3
3

Control

Action Input
🔀 Shuffle 1
▶️ Find path 2
Find path (faster) 3
Pause Space
⬆️➡️⬇️⬅️ Move camera around Arrow keys
↩️ Rotate camera Enter
🔭 Zoom in and out Scroll
🎇 Firework Left click
🔬 Inspection Right click
🔁 Toggle full screen mode Tab

Build

Have Go installed properly
$ export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
$ echo "PATH=$PATH:$GOROOT/bin:$GOPATH/bin" >> ~/.bashrc
$ echo "PATH=$PATH:$GOROOT/bin:$GOPATH/bin" >> ~/.bash_profile
Windows or Mac

You might want to use MSYS or MSYS2 to run bash commands on Windows systems.

$ go get -v github.com/nanitefactory/amidakuji/...
$ go get -v -u github.com/go-bindata/go-bindata/...
$ cd $GOPATH/src/github.com/nanitefactory/amidakuji/
$ make
Ubuntu

Install dependent libraries. The rest is the same for any environments.

$ sudo apt-get clean
$ sudo rm -r /var/lib/apt/lists/*
$ sudo apt update
$ sudo apt install libglib2.0-dev libpango1.0-dev libasound2-dev libgdk-pixbuf2.0-dev libgl1-mesa-dev xorg-dev libgtk2.0-dev
$ go get -v github.com/nanitefactory/amidakuji/...
$ go get -v -u github.com/go-bindata/go-bindata/...
$ cd $GOPATH/src/github.com/nanitefactory/amidakuji/
$ make

Run

$ ./amidakuji

Or double-click on its icon on a file browser.


Clean-up

$ make clean

External sources

Library
Music
Image
Font

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL