2014-10-02 18:14:42 -07:00
|
|
|
:mod:`DogeScramble` --- A word scramble game with rewards
|
|
|
|
=========================================================
|
|
|
|
|
|
|
|
This module provides a word scrambling game that rewards winners with small
|
2015-11-01 17:40:13 -08:00
|
|
|
amounts of Dogecoin. Requires a ``dogerpc`` service provider such as
|
|
|
|
:doc:`DogeRPC </api/modules/dogerpc>`.
|
|
|
|
|
|
|
|
Config
|
|
|
|
------
|
|
|
|
|
|
|
|
.. code-block:: json
|
|
|
|
|
|
|
|
{
|
|
|
|
"hintDelay": 15,
|
|
|
|
"delayNext": 5,
|
|
|
|
"maxHints": 5,
|
|
|
|
"abortAfterNoGuesses": 2,
|
|
|
|
"categoryduration": 10,
|
|
|
|
"winAmount": 5,
|
|
|
|
"decreaseFactor": 0.75
|
|
|
|
}
|
|
|
|
|
|
|
|
In addition to the json config above, additional categories of words may be
|
|
|
|
added by adding additional text files to the DogeScramble data dir.
|
|
|
|
|
|
|
|
.. cmdoption:: hintDelay
|
|
|
|
|
|
|
|
Seconds between hints if the word is not guessed
|
|
|
|
|
|
|
|
.. cmdoption:: delayNext
|
|
|
|
|
|
|
|
Delay in seconds between the end of one round and start of the next
|
|
|
|
|
|
|
|
.. cmdoption:: maxHints
|
|
|
|
|
|
|
|
How many letters will be hinted before the word is thrown away
|
|
|
|
|
|
|
|
.. cmdoption:: abortAfterNoGuesses
|
|
|
|
|
|
|
|
How many rounds may pass with no players guessing. Once this count is
|
|
|
|
passed, the game is automatically stopped.
|
|
|
|
|
|
|
|
.. cmdoption:: categoryduration
|
|
|
|
|
|
|
|
Number of words used from a category before changing the category
|
|
|
|
|
|
|
|
.. cmdoption:: winAmount
|
|
|
|
|
|
|
|
Amount of dogecoin to send the winner
|
|
|
|
|
|
|
|
.. cmdoption:: decreaseFactor
|
|
|
|
|
|
|
|
For subsequent wins by the same player, the reward will be the previous
|
|
|
|
reward multiplied times this number
|
|
|
|
|
|
|
|
Commands
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. cmdoption:: .scramble
|
|
|
|
|
|
|
|
Start the unscramble game
|
|
|
|
|
|
|
|
.. cmdoption:: .scrambleoff
|
|
|
|
|
|
|
|
Stop the unscramble game
|
2014-10-02 18:14:42 -07:00
|
|
|
|
2015-06-19 20:23:36 -07:00
|
|
|
Class Reference
|
|
|
|
---------------
|
|
|
|
|
2015-06-18 22:58:11 -07:00
|
|
|
.. automodule:: pyircbot.modules.DogeScramble
|
2014-10-02 18:14:42 -07:00
|
|
|
:members:
|
|
|
|
:undoc-members:
|
|
|
|
:show-inheritance:
|