diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-12-09 11:41:07 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-12-09 11:41:07 +0100 |
commit | 4daa83b9ebf896da5bb24bd7b7ff1866dcf98cb2 (patch) | |
tree | bab94f92e4eb85695c3f664c7782a962668a470f /data | |
parent | 4ff3c5d894c9b6b375b69d5fe9506a0a73e33871 (diff) |
UNO!: when the game hasn't started, it's nobody's turn
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/games/uno.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb index c689c253..75154362 100644 --- a/data/rbot/plugins/games/uno.rb +++ b/data/rbot/plugins/games/uno.rb @@ -605,6 +605,12 @@ class UnoGame end def show_turn(opts={}) + if @players.empty? + announce _("nobody is playing %{uno} yet!") % { + :uno => UNO + } + return false + end cards = true cards = opts[:cards] if opts.key?(:cards) player = @players.first |