Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdtrooper/powerline_slotmachine
A toy Powerline segment. This segment shows a slotmachine.
https://github.com/mdtrooper/powerline_slotmachine
powerline powerline-segment slotmachine toy
Last synced: about 1 month ago
JSON representation
A toy Powerline segment. This segment shows a slotmachine.
- Host: GitHub
- URL: https://github.com/mdtrooper/powerline_slotmachine
- Owner: mdtrooper
- License: gpl-3.0
- Created: 2019-11-17T00:39:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-17T02:04:14.000Z (almost 5 years ago)
- Last Synced: 2024-08-14T15:50:15.621Z (about 2 months ago)
- Topics: powerline, powerline-segment, slotmachine, toy
- Language: Python
- Size: 88.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# POWERLINE SLOTMACHINE
A toy [Powerline](https://powerline.readthedocs.io/en/master/) segment. This segment shows a slotmachine.
By [Miguel de Dios Matias](https://github.com/mdtrooper).
## Installation
### Using pip
```
pip install powerline-slotmachine
```## Configuration
You can activate the Powerline Slotmachine segment by adding it to your segment configuration,
for example in `.config/powerline/themes/shell/default.json`:```json
{
"function": "powerline_slotmachine.slotmachine",
"priority": 90
}
```But the Powerline Slotmachine store the last combination and money amount in `/.config/powerline_slotmachine.json`.
## Usage
Only execute something in the prompt and the slotmachine will bet.
The bet is 1 coin. The user starts with 10 coins.
![screenshot](https://raw.githubusercontent.com/mdtrooper/powerline_slotmachine/master/powerline_slotmachine.jpg "Screenshot")
### Combinations
Slot | Prize
------ | ----
🍇🍇🍇 | 1
🍋🍋🍋 | 2
🍉🍉🍉 | 4
🍒🍒🍒 | 15
⭐⭐⭐ | 100
XX🍒 | 5
X🍒🍒| 10## License
Licensed under [the GPL3 License](https://github.com/mdtrooper/powerline_slotmachine/blob/master/LICENSE).