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
GIF3 |
|
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
Windows
$ go get -v github.com/faiface/pixel-examples/community/amidakuji/...
$ go get -v -u github.com/go-bindata/go-bindata/...
$ cd $GOPATH/src/github.com/faiface/pixel-examples/community/amidakuji/
$ make
Ubuntu
$ 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/faiface/pixel-examples/community/amidakuji/...
$ go get -v -u github.com/go-bindata/go-bindata/...
$ cd $GOPATH/src/github.com/faiface/pixel-examples/community/amidakuji/
$ make
External sources
Library
Music
Image
Font