- Created Sunday, January 11th 2015 @ 20:53:10
I have written a Ruby bot, but there seems to be no reference or starter bot for Ruby, so I gave it a shot. Now I only get the following error:
:1:in `require': cannot load such file -- rubygems.rb (LoadError) from :1:in `'
I don't believe that this is a problem in the bot-code and it doesn't require anything except being run in ruby.
In advance, thanks for any feedback!
- Created Sunday, January 11th 2015 @ 21:36:43
See here: http://theaigames.com/discussions/general/52ef9c5b5d203c9b738b45ab/supported-languages/2/show
There is a post by jim which describes how the ruby bot has to look like. Should be the same as for Omaha.
- Created Sunday, January 11th 2015 @ 23:03:25
Thanks for the answer, but I actually have the things he talked about there.
Its a single file, which starts with
#!/usr/bin/env ruby # -*- coding: utf-8 -*- class Region ...
and ends with
... if __FILE__ == $0 Bot.new().run() end
- Created Monday, January 19th 2015 @ 16:39:11
This is Fixed, for the curious.
- Created Tuesday, March 8th 2016 @ 22:27:09
Hi, I've got the exact same problem, but for a connect-four bot in Ruby. What was your solution?
- Created Thursday, March 10th 2016 @ 23:50:24
It was a bug on the server side. You might have to send the developers an email about it.
On an unrelated note: Remember to set STDOUT.sync = true or the bot will buffer output and the server can't read anything untill the end of the game.
- Updated Thursday, March 10th 2016 @ 23:51:43
Thanks, an email to them fixed it. I saw your recommendation about STDOUT and included it, haven't had problems.