The most common game playing algorithm is "mini-max"
search with "alpha-beta pruning." (you also need to
use a hash table to get an efficient search).
The problem with that approach in dots and boxes is that
it almost impossible to come up with an "evaluation function" that gives a reasonable numeric evaluation
of how good or bad a position is. In chess, for example,
you can assign say 100 points for a pawn, maybe 320 for
a bishop, 500 for a rook, etc. Then you can assign values
to various position factors such as mobility and king-safety. But how on earth do you come up with a
reasonable numeric evaluation of an arbitrary dots and
boxes position?
Knox does have a "loony endgame" (see refs. at bottom)
evaluator so it doesn't have to search all the way to
the end in order to play well. A technique that can
be used in dots and boxes is "nim" values from "nimstring."
This can used to get the right "parity." It's really
only effective when the board is divided up into disjoint
regions. If the position consists of a single connected
region, then the nimstring evaluation is too computationally
expensive to do in anything approaching a reasonable amount
of time until you get so close to the end that you can
ignore nimstring and figure out what to do just by brute force search.
I haven't finished the nimstring stuff which I will
add to the program whenever I do finish it. Anyway
the program is written in C++.
References:
[these will define such things as "loony endgame"
and "nimstring"]
"The Dots and Boxes Game: Sophisticated Child's Play"
by Elwyn R. Berlekamp [you can order this online
at many sites like amazon, barnes and noble, etc.]
"Winning Ways (for your mathematical plays)"
by Elwyn Berlekamp, John Conway, and Richard Guy.
[This is a two-volume out of print text on combinatorial
game theory that contains a special chapter just on
dots and boxes. There is a lot of overlap between this
chapter and Berlekamp's thin book above. This seminal
work on combinatorial game theory is being re-printed
in four volumes. Volumes 1 and 2 are out which cover the
old volume one -- the theory of combinatorial games.
The specific games are covered in old volume 2. You
may be able to find the old versions in the library;
it's a great book.]
"Forcing Your Opponent to Stay in Control of a Loony
Dots-and-Boxes Endgame," by Elwyn Berlekamp and Katherine Scott at
http://math.berkeley.edu/~berlek/papers/forcing.ps
This is a nice paper which among other things demonstrates
that even loony endgames can be extraordinarily difficult.