1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
Crafty Watcher v1.4
Paul Serice
9/18/99
On the Crafty FTP site was a tcsh script called "watch". I haven't seen
it for a while, but I liked the way it would let you watch Crafty think
as it played by displaying one of Crafty's log files.
Crafty Watcher is a Gtk-- GUI. Like its tcsh predecessor, it lets you
observe Crafty's thinking without taking up much CPU time. The original
version (v1.0) of Crafty Watcher was written using Motif and is more
efficient than the current Gtk-- version. The Gtk-- version, even
though not as efficient, should be o.k. Just a quick look using a tool
like "top" will show you that the Gtk-- version usually stays at 0.00%,
but every so often ventures into the 0.2% to 0.5% range (on a P350).
The main feature of Crafty Watcher is that it knows when a game has
ended and Crafty has moved on to the next log file. So, if you used
"watch", you'll know what I mean when I say their is no more typing
"<ctrl-c>" to get in sync. In short, it can always automatically
display the current game. You're not stuck with the current game
though. Basic support for viewing past games is present.
Also, you'll come across the way I think all scroll bars the world over
should work. When you scroll back through the log file for the current
game, you will not be interrupted by things scrolling onto the bottom of
the window. So, the rule is that Crafty Watcher watches for new games
only when the scrollbar is at the bottom of the most recent game.
I have no other functions in mind, but if you would like something
added, just let me <ugs@debian.org> know.
COMPILING, INSTALLATION, AND EXECUTION
COMPILING:
Crafty Watcher was developed on Debain/GNU Linux v2.1 under kernel
version 2.2.10 using libgtk1.2-dev_1.2.3-1 and libgtkmm-dev_1.0.1-1. If
you have a similar set up, typing "make" should be all that is
required.
INSTALLATION:
It doesn't matter where you install it.
EXECUTION:
Crafty Watcher uses the same CRAFTY_LOG_PATH environment variable that
Crafty uses to determine which directory contains Crafty's log files.
If you do not set this environment variable, Crafty Watcher will use the
current working directory.
COPYRIGHT AND LICENSE
I release this source into the public domain, but I provide no
warranties of any kind. Use Crafty Watcher at your own risk.
|