Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/the-undefined/twister
Automated spinner with a twist!
https://github.com/the-undefined/twister
Last synced: about 1 month ago
JSON representation
Automated spinner with a twist!
- Host: GitHub
- URL: https://github.com/the-undefined/twister
- Owner: the-undefined
- License: gpl-2.0
- Created: 2015-03-28T07:38:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-31T12:08:35.000Z (over 9 years ago)
- Last Synced: 2023-08-01T03:59:36.953Z (over 1 year ago)
- Language: Ruby
- Size: 148 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twister
Kids too young to spin the twister spinner for the adults? That's where this script originated from.
If you have played on a new twister board you may have experienced the new types of moves:
- spinners choice
- put a limb in the airThis script spits out some random actions to mimic the 'spinners choice' and also support the limbs in the air.
Have fun!
## Usage
Make sure you have a version of ruby installed (for now), and download the script.
```
$ git clone [email protected]:the-undefined/twister.git
$ cd twister
```You can run the script with several options, these can be found with the help flag:
```
$ ruby twister.rb --help
Usage: ruby twister.rb [options]
-s, --speak Speak the commands outloud
-p, --players=LIST Comma seperated list of player names
-i, --interval=INT Number of seconds between each spin
```An example of four people playing with each command being printed every 3 seconds.
```
$ ruby twister.rb -pJoe,Claire,Sammy,Martin
Joe, put your left foot on yellow
Claire, put your left hand on yellow
Sammy, put your left hand on blue
Martin, bark like a dog three times
Joe, put your right hand in the air
```If you are on OSX you can take advantage of it's built in `say` command and get the commands spoken aloud by the Mac as well as printed:
```
$ ruby twister.rb -pJoe,Claire,Sammy,Martin --speak
```If you would like to make the game harder or easier you can set the interval between the commands (defaults to 3 seconds):
```
# Drunk / Yoga mode:
$ ruby twister.rb -i10 -pJoe,Claire,Sammy,Martin# Faster:
$ ruby twister.rb -i2 -pJoe,Claire,Sammy,Martin
```## Plans / TODO
- [ ] convert script to a gem
- [ ] don't command players to move to colours that are all taken
- [ ] add pattern sequences for players to follow across moves ('Crab', 'Monkey', 'Sleeping tiger')
- [ ] create a visual representation of moves (maybe with `gosu` or a web app)
- [ ] replace reliance on the `say` command, possibly with audio files