summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-10 12:34:47 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-10 12:34:47 +0200
commit10e1b4c600adfe49b62679762f7f76481dbf1f23 (patch)
tree7fdcf3a30f791373b1529b2b911cb249f1f6390e
parenta8d0cf11c3f29c3a760250a9818a962919233cd7 (diff)
uno plugin: more extensive help
-rw-r--r--data/rbot/plugins/games/uno.rb23
1 files changed, 18 insertions, 5 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb
index 1ee9bdea..4ea0ec35 100644
--- a/data/rbot/plugins/games/uno.rb
+++ b/data/rbot/plugins/games/uno.rb
@@ -565,20 +565,33 @@ class UnoPlugin < Plugin
end
def help(plugin, topic="")
- (_("%{uno} game. !uno to start a game. in-game commands (no prefix): ") % {
- :uno => UnoGame::UNO
- }) + [
+ case topic
+ when 'commands'
+ [
_("'jo' to join in"),
- _("'pl <card>' to play <card>"),
+ _("'pl <card>' to play <card>: e.g. 'pl g7' to play Green 7, or 'pl rr' to play Red Reverse"),
_("'pe' to pick a card"),
_("'pa' to pass your turn"),
- _("'co <color>' to pick a color"),
+ _("'co <color>' to pick a color after playing a Wild: e.g. 'co g' to select Green (or 'pl w+4 g' to select the color when playing the Wild)"),
_("'ca' to show current cards"),
_("'cd' to show the current discard"),
_("'od' to show the playing order"),
_("'ti' to show play time"),
_("'tu' to show whose turn it is")
].join(" ; ")
+ when 'rules'
+ _("play all your cards, one at a time, by matching either the color or the value of the currently discarded card. ") +
+ _("cards with special effects: Skip (next player skips a turn), Reverse (reverses the playing order), +2 (next player has to take 2 cards). ") +
+ _("Wilds can be played on any card, and you must specify the color for the next card. ") +
+ _("Wild +4 also forces the next player to take 4 cards, but it can only be played if you can't play a color card. ") +
+ _("you can play another +2 or +4 card on a +2 card, and a +4 on a +4, forcing the first player who can't play one to pick the cumulative sum of all cards. ") +
+ _("you can also play a Reverse on a +2 or +4, bouncing the effect back to the previous player (that now comes next). ")
+ else
+ (_("%{uno} game. !uno to start a game. see help uno rules for the rules. commands: %{cmds}") % {
+ :uno => UnoGame::UNO,
+ :cmds => help(plugin, 'commands')
+ })
+ end
end
def message(m)