https://github.com/gaming32/uno
A recreation of the Uno card game
https://github.com/gaming32/uno
Last synced: about 1 month ago
JSON representation
A recreation of the Uno card game
- Host: GitHub
- URL: https://github.com/gaming32/uno
- Owner: Gaming32
- Created: 2019-09-15T18:42:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T17:21:02.000Z (about 4 years ago)
- Last Synced: 2025-04-10T23:42:20.540Z (about 1 month ago)
- Language: Python
- Size: 103 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Running
To run Uno, use the command `python -m uno`.
To run Uno Forge, use the command `python -m uno_forge`.
# Installing
To install use the command `python -m pip install uno-game`, (`python -m pip install uno-game-forge` for Uno Forge).
# Modding
NOTE: The latest version of uno_forge supports the following uno versions: 1.0.2
## Starting
Create a mod in the `mods` folder or the `~/.uno_forge_mods` folder with a compatable Python file extension and follow the following conventions:File start:
``` python
import uno
import uno.main as unomain
import unoforge # Optional
```File end:
``` python
if __name__ == '__main__': unomain.main()
```
## Features
### Custom main menu item
To add a custom main menu item, use the function `unoforge.add_menu_function`. A callback passed to this function may return `True` to exit the menu.
### Executing something when the game ends
To execute something when the game ends, use the function `unoforge.register_exit_callback`.