diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-26 21:15:40 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-26 21:15:40 +0200 |
commit | 14cc1f5de9ad44887a913b3638a9403c661f11a7 (patch) | |
tree | 4a036d37c6a5c7ace0d866e19163b0651c810e2e /lib/colonial_twilight/fln_bot_rules.rb | |
parent | 910edf82f054fc1bde452b57d428980fe316f42a (diff) | |
download | colonial-twilight-14cc1f5de9ad44887a913b3638a9403c661f11a7.zip colonial-twilight-14cc1f5de9ad44887a913b3638a9403c661f11a7.tar.gz |
FLNBotRules : fix and spec dbg(msg, ret)
Diffstat (limited to 'lib/colonial_twilight/fln_bot_rules.rb')
-rw-r--r-- | lib/colonial_twilight/fln_bot_rules.rb | 9 |
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) |