Age | Commit message (Collapse) | Author |
|
|
|
also related to #41 and #6
|
|
|
|
This now uses wordgenerator.net
|
|
|
|
|
|
|
|
|
|
The score is now saved in a look-up table, that also allows more
detailed output when showing the score. Also, the dice rolling
potentially allows for a different number of dices to be rolled (e.g. if
some are held).
Take the opportunity to also gettextize outuput.
|
|
Sort dices when rolling and separate values with spaces.
|
|
|
|
|
|
This prevents spurious timers from running after a rescan
|
|
Also respect autoask delay when autoskipping
|
|
|
|
|
|
|
|
|
|
|
|
Fix most ruby 1.9 warnings about shadowed variables (still one remaining in
keywords.rb). The only significant changes are in the quiz game plugin.
Also fix an issue in dictclient where the block parameter of a method
was not correctly isolated from the previous parameter.
|
|
|
|
If someone joins after a challengeable W+4, he would be inserted between
the last and first player, and if there is a challenge _his_ cards would
be exposed. So prevent joining in such a situation.
|
|
After a successful challenge, the challenged player can choose to
pick&pass instead of playing one of its allowed cards. In such a case,
the must_play array would not get reset, preventing the next player to
be able to play any of its card.
Fix by resetting must_play on next_turn rather than on set_discard.
|
|
Exit as soon as we find a card that reveals that the W+4 was not a valid
move.
|
|
Commit a306b2c68eb58c1c88057ff7ee78895401adb6a9 introduced a fix to
prevent a player from playing something like g9r9, but the fix actually
prevented any single-card play. Fix by making the \1 optional.
|
|
The regexp should make sure that the second card is equal to the first
specified card, instead of matching the card expression one or two
times. Otherwise, a play like 'pl g9r9' would be accepted when the
player had two r9 cards and could play them.
This is only a aesthetical change because the plays would still be
valid, albeit (1) surprising and (2) mismatching what the user actually
wrote.
|
|
If the random generation site failed for any reason (eg. by returning a
non-2xx page), starting a hangman game would fail silently.
Catch this case and announce the failure.
|
|
|
|
|
|
|
|
The target was being of the wrong class (String vs Irc::Channel),
busting all the hash lookups.
|
|
|
|
|
|
It's 'hangman define' now, and we should only use one prefix in the
example command
|
|
This prevents spurious messages about the game join timer being
cancelled when a game is ended by all players but one dropping out.
|
|
|
|
This allows lazy players to specify the color after playing the wild by
pressing up-arrow and adding the color to the previous line, without
running the risk of playing their precious second wild.
|
|
The public announcement is now a generic "can't do that", with the
specific message being notified to the user. This reduces the chance of
other players guessing what the current player has from the error
messages.
|
|
This prevents a game from starting after it has ended.
|
|
The drop is still counted, to prevent people from leaving and then
rejoining until they have nice cards.
|
|
|
|
|
|
hangman: an unneeded letters accessor was defined
ircbot: restore initializations removed by previous commit
|
|
All of these modules/plugins were generating warnings like this:
warning: parenthesize argument(s) for future version
This patch should fix all the warnings without affecting functionality.
|
|
|
|
|
|
|
|
|
|
_() returns frozen strings in 1.92.0. This patch not only addresses
that, but also makes some of the replies more flexible.
|
|
m.server.get_user doesn't work for offline users so use what was given
instead.
|