summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight/fln_bot_rules.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/colonial_twilight/fln_bot_rules.rb')
-rw-r--r--lib/colonial_twilight/fln_bot_rules.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/colonial_twilight/fln_bot_rules.rb b/lib/colonial_twilight/fln_bot_rules.rb
index 43d5abf..eb06af6 100644
--- a/lib/colonial_twilight/fln_bot_rules.rb
+++ b/lib/colonial_twilight/fln_bot_rules.rb
@@ -6,11 +6,10 @@ module ColonialTwilight
def dbg(msg, ret)
return if @debug.zero?
- s = case @debug
- when 1 then " #{msg} : YES" if ret
- else " #{msg} : #{ret ? 'YES' : 'NO'}"
- end
- puts s unless @debug == 666
+ case @debug
+ when 1 then puts " #{msg} : YES" if ret
+ else puts " #{msg} : #{ret ? 'YES' : 'NO'}"
+ end
end
def pass?(board = @board)