kayabot 0.1.9.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/kayabot.gemspec +1 -1
- data/lib/kayabot.rb +1 -1
- metadata +1 -1
data/kayabot.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "kayabot"
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.2.0"
|
4
4
|
s.summary = "Interface to run Go Bots on Kaya"
|
5
5
|
s.description = "This is an interface to run GTP compliant Go Bots on Kaya. Modified version for Zen."
|
6
6
|
s.authors = ["Gabriel Benmergui"]
|
data/lib/kayabot.rb
CHANGED
@@ -95,7 +95,7 @@ class KayaBot
|
|
95
95
|
else
|
96
96
|
color_short = (@color=="black" ? "B" : "W")
|
97
97
|
bot_move = "" if bot_move == "pass"
|
98
|
-
bot_move = ";#{color_short}[#{bot_move}]#{color_short}L[#{(25*60) - (@move ? @move.count(";") : 1)}]"
|
98
|
+
bot_move = ";#{color_short}[#{bot_move}]#{color_short}L[#{(25*60) - ((@move && !@move.empty?) ? @move.count(";") : 1)}.000]"
|
99
99
|
@agent.post(@server_url+ PLAY_URL,
|
100
100
|
:move => bot_move)
|
101
101
|
@move = nil
|