[londonlaw-users] AI infrastructure update

  • From: Paul Pelzl <pelzlpj@xxxxxxxxxxxxxx>
  • To: londonlaw-users@xxxxxxxxxxxxx
  • Date: Tue, 9 Aug 2005 12:16:15 -0400

The Arch archive now has some preliminary AI client code.  If any of you
were waiting for your chance to program the Greatest Scotland Yard AI
Ever, you could probably get started any time.

   * londonlaw/common/path has a number of algorithms for pathfinding
     and determining sets of locations where a pawn could travel or
     could be located.

   * londonlaw/aiclients/base.py has an AI client base class
     that takes care of most of the work of talking to the server,
     maintaining a game history data structure, etc.  A minimal 
     functional client just needs to inherit BaseAIProtocol and override 
     doTurn().

   * londonlaw/aiclients/{x_simple.py, detective_simple.py} are a pair of 
     rather dumb but functional proof-of-concept clients.  They should 
     give you an idea how to write your own.  In the same directory are 
     the launcher scripts, which can be executed like:

     $ cd <londonlaw source tree root>
     $ export PYTHONPATH=$PWD
     $ python londonlaw/aiclients/x_simple_launcher.py "name of game to join"

If there are some obvious building-block algorithms that should be in
path.py or the AI base class, this would be a good time to bring it up.

Paul



==============================================================
The London Law Users mailing list
londonlaw-users@xxxxxxxxxxxxx
List info: //www.freelists.org/list/londonlaw-users
==============================================================


Other related posts: