kayabot 0.1.9.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/kayabot.gemspec +1 -1
  2. data/lib/kayabot.rb +1 -1
  3. metadata +1 -1
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "kayabot"
3
- s.version = "0.1.9.1"
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"]
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kayabot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: