|
||||
Title: New Bot caretaker have questions... Post by unic on Apr 15th, 2006, 5:16pm Hi, I've got my Bot up and working (though playing extremely stupid), and have a couple of questions: a/ Is there a way for my bot to display information while thinking, without the perl-script interpreting it as a move? E.g., I would like to display depth, nodes/second, PV, evaluation, etc. - would make it a lot easier to try to debug or improve things. b/ Is there a way for my bot to play against the bots in the botladder, starting at the bottom? Otherwise, there usually does not seem to be a weak bot logged in, as far as I've seen. |
||||
Title: Re: New Bot caretaker have questions... Post by Ryan_Cable on Apr 15th, 2006, 5:41pm I’m not sure if there is a more efficient way, but you can start most bots by clicking on the Arimaa Bots link on the right of the Gameroom, then the Bots Available to Play link at the top of that page. Pick out the bot you want, and click on its Play link. Finally, pick the color you want it to play, and click the Start Bot button. The bot will then show up in the Gameroom with a game for your bot to join. |
||||
Title: Re: New Bot caretaker have questions... Post by jdb on Apr 15th, 2006, 5:58pm For question a) Clueless writes a bunch of info to a log file while it is searching. I look at the file with a text editor. This also makes it easier to recreate situations that occurred in a game. Anything written to stdout is digested by the perl script. For question b) Ryan's method is the only way I know. I would recommend starting against shallowblue and then trying arimaazilla. They both move within a few seconds, so the games don't take too long. |
||||
Title: Re: New Bot caretaker have questions... Post by unic on Apr 15th, 2006, 6:03pm on 04/15/06 at 17:58:02, jdb wrote:
There is no way around this? I would really like to be able to see what my bot is thinking, live, while it is playing a game... |
||||
Title: Re: New Bot caretaker have questions... Post by unic on Apr 15th, 2006, 6:04pm Oh, and thanks to Ryan for telling me how to start a bot - ShallowBlue is a bit less intimidating than Arimaanator. |
||||
Title: Re: New Bot caretaker have questions... Post by 99of9 on Apr 15th, 2006, 6:08pm on 04/15/06 at 18:03:06, unic wrote:
I use two methods to get around this. 1) write messages to stderr - they will be dispersed throughout the stdout output, so you will see them live 2) write messages to a log file, and in a separate window, tail -f that log file. Admittedly this 2nd is a linux command, so windows may not have an equivalent. But if you're a true blue windows programmer, you can probably make a new "window" come up with your output ;-). |
||||
Title: Re: New Bot caretaker have questions... Post by unic on Apr 15th, 2006, 7:20pm on 04/15/06 at 18:08:05, 99of9 wrote:
How ugly! But it works :) I expect I shall be using this a lot. Quote:
I'm afraid I'm not a true windows programmer - most of my programs are compiled as console applications ;) ... either way, seeing some output from my program, it's plain I have a major bug somewhere... (where it played the first step according to the search, but for the remaining steps just played the first move generated) but I feel less that I am fumbling in the dark trying to find out now, with the possibility of seeing some output. It is way late here though, so trying to fix it will have to wait until tomorrow... |
||||
Title: Re: New Bot caretaker have questions... Post by unic on Apr 15th, 2006, 7:29pm Oh, and while using stderr works... I hereby petition for some capable Perl hacker (which rules me out - I know nothing about Perl) to extend the bot perl-script so that it treats any line beginning with a certain character (perhaps #) as a comment, and ignores it... Not sure how complicated that would be in Perl - but seems to me it shouldn't be too difficult to add. And it would solve the whole issue of not being able to write data to stdout without the Perl-script trying to interpret it as a move. Good night. Tomorrow's goal: have Fairy actually trying to win (or at least capture/defend material) instead of just shuffling rabbits left and right. |
||||
Title: Re: New Bot caretaker have questions... Post by jdb on Apr 16th, 2006, 1:00am Quote:
A decent text editor, like TextPad, (free via google) will automatically reload the log file in real time. |
||||
Title: Re: New Bot caretaker have questions... Post by unic on Apr 16th, 2006, 5:17am on 04/15/06 at 19:29:15, unic wrote:
Mission accomplished - now that I could actually get output and get on with debugging, a few large bugs were easily found, and in today's first game, Fairy beat ShallowBlue :) |
||||
Title: Re: New Bot caretaker have questions... Post by unic on Apr 29th, 2006, 5:53pm Fairy is progressing well - working mainly on improving search speed right now. Have too many ideas for evaluation, so I'm afraid that once I start seriously looking at that, I won't get around to working on search... so want to get a reasonable search speed first. Random output from Fairy searching the start position: Code:
Slightly garbled - I think the forum is eating some of my whitespace or inserting extra (or doing some weird replacement with tabs)... not sure which. |
||||
Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1! YaBB © 2000-2003. All Rights Reserved. |