From fee486daf2f5ab767f0eb88cce13089797af9b19 Mon Sep 17 00:00:00 2001 From: Jay Thomas Date: Sat, 6 Sep 2014 23:32:46 -0400 Subject: [PATCH] tuck that call safely away --- brawl.rb | 2 +- junkyard.rb | 2 +- rumble.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/brawl.rb b/brawl.rb index 5aa3bae..16714bb 100644 --- a/brawl.rb +++ b/brawl.rb @@ -1295,6 +1295,7 @@ def bot_move a.unshift(players.shuffle.select { |e| e != p }.first.user.to_s) debug "Bot's playing #{a.join(' ')} " play_move(a) + bot_thread_move if cards.first.type == :disaster else a = Array.new(p.cards.length) { |i| i + 1 } # Don't discard the first card @@ -1303,7 +1304,6 @@ def bot_move debug "Bot's discarding #{a.join(' ')}" discard(a) end - bot_thread_move if cards.first.type == :disaster end def bot_counter diff --git a/junkyard.rb b/junkyard.rb index 344d9cf..78cad59 100644 --- a/junkyard.rb +++ b/junkyard.rb @@ -960,6 +960,7 @@ def bot_move a.unshift(players.shuffle.select { |e| e != p }.first.user.to_s) debug "Bot's playing #{a.join(' ')} " play_move(a) + bot_thread_move if cards.first.type == :disaster else a = Array.new(p.cards.length) { |i| i + 1 } # Don't discard the first card @@ -968,7 +969,6 @@ def bot_move debug "Bot's discarding #{a.join(' ')}" discard(a) end - bot_thread_move if cards.first.type == :disaster end def bot_counter diff --git a/rumble.rb b/rumble.rb index 954d5cc..7546ab8 100644 --- a/rumble.rb +++ b/rumble.rb @@ -1144,6 +1144,7 @@ def bot_move a.unshift(players.shuffle.select { |e| e != p }.first.user.to_s) debug "Bot's playing #{a.join(' ')} " play_move(a) + bot_thread_move if cards.first.type == :disaster else a = Array.new(p.cards.length) { |i| i + 1 } # Don't discard the first card @@ -1152,7 +1153,6 @@ def bot_move debug "Bot's discarding #{a.join(' ')}" discard(a) end - bot_thread_move if cards.first.type == :disaster end def bot_counter