DogeScramble — A word scramble game with rewards

This module provides a word scrambling game that rewards winners with small amounts of Dogecoin. Requires a dogerpc service provider such as DogeRPC.

Config

{
    "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.

hintDelay

Seconds between hints if the word is not guessed

delayNext

Delay in seconds between the end of one round and start of the next

maxHints

How many letters will be hinted before the word is thrown away

abortAfterNoGuesses

How many rounds may pass with no players guessing. Once this count is passed, the game is automatically stopped.

categoryduration

Number of words used from a category before changing the category

winAmount

Amount of dogecoin to send the winner

decreaseFactor

For subsequent wins by the same player, the reward will be the previous reward multiplied times this number

Commands

.scramble

Start the unscramble game

.scrambleoff

Stop the unscramble game

Class Reference

class pyircbot.modules.DogeScramble.DogeScramble(bot, moduleName)[source]

Bases: pyircbot.modulebase.ModuleBase

ondisable()[source]
scramble(args, prefix, trailing)[source]
class pyircbot.modules.DogeScramble.scrambleGame(master, channel)[source]

Bases: object

abortWord()[source]
catFileNameToStr(s)[source]
clearTimer(timer)[source]
clearTimers()[source]
gameover()[source]
giveHint()[source]
pickWord()[source]
scramble(args, prefix, trailing)[source]
scrambleIndividualWord(word)[source]
scrambleWord(word)[source]
startNewWord()[source]
startScramble()[source]