MSN Home  |  My MSN  |  Hotmail  |  Shopping  |  Money  |  People & Chat
Sign in with your .NET Passport Web Search:   
go to MSNGroups 
Groups Home  |  My Groups  |  Language  |  Help  
 
WORLD CAMELOT FEDERATIONworldcamelotfederation@groups.msn.com 
  
What's New
  Join Now
  WCF Home  
  WC Finals  
  WC SemiFinals  
  WC Prelims 1  
  WC Prelims 2  
  Camelot Kids  
  WCF Membership  
  Analysis  
  PC Programs  
  Camelot History  
  Camelot Rules  
  Rules Changes  
  Rules History  
  For Beginners  
  A Camelot Story  
  Camelot Games 1  
  Camelot Games 2  
  G C Games 1  
  G C Games 2  
  G C Games 3  
  G C Games 4  
  Cam Games  
  Camette Games  
  Position Values  
  Rules Testing  
  CamelotOpenings1  
  CamelotOpenings2  
  G C Openings  
  ChivalryOpenings  
  Camette Openings  
  Camelot Problems  
  ProblemSolutions  
  Camelot Endings  
  Ultimate Themes  
  Rules Docs List  
  Variant Rules  
  Set Information1  
  Set Information2  
  Pix of Boards  
  Pix of Pieces  
  Pix of Box Tops  
  Pix of Misc Docs  
  Misc Pictures  
  More Pictures  
  Quotations  
  Links  
  Message Board  
  
  
  Tools  
 
 
CREATION OF AN INDEPENDENT CAMELOT-PLAYING COMPUTER PROGRAM
 
A successful independent Camelot computer program would contain three primary elements:
1. An effective interactive graphical interface including the playing surface and the pieces
2. Strict adherence to the playing rules
3. An algorithm to perform an accurate evaluation of positions
 
The following might provide some assistence with #3.
 
POSITION EVALUATION
 
Here's a first attempt at position evaluation.  I welcome all suggestions on this element.  Send them to Michael Nolan at mwn_mqn@msn.com
 
Basic Evaluation Factors
1. Relative values of a Knight and a Man.
2. Value of entering two pieces into opposing castle (winning the game) -- the third highest priority behind removing a piece from its own castle (the highest priority) and making a capture by means of a Jump or a Knight's Charge when an enemy piece is exposed to capture by means of a jump (the second highest priority).
3. Value of capturing all of opponent's pieces while retaining two of your own (winning the game).
4. Proximity to Opposing Castle.
5. Number of squares controlled by each piece.
6. Values of trading like-valued pieces when ahead and trading like-valued pieces when behind.
7. Proximity to center of board.
8. Proximity of Pieces (Men or Knights) to Knights.
9. Proximity of Men to Men.
10. Exposure to a position where a piece is next to an exposed enemy piece but not exposed, itself, to the enemy piece (in other words, moving into a position where a jump on the next move will be mandatory.
11. Value of removing your piece from your own Castle.
12. Value of making a capture by means of a Jump or a Knight's Charge when an enemy piece is exposed to capture by means of a jump.
 
ARBITRARILY ASSIGNED VALUES
Assumption: Depending upon how many ply the look ahead is, whatever move-tree results in the most points is the chosen move.
1. Material:
Let: The value of a Man = 100
Let: P = the number of pieces (Knights and Men), NOT IN OPPONENT'S CASTLE, owned by the player whose Knight is to be evaluated.  (At the start of the game, each player has 4 Knights and 10 Men, so P = 14 for both players.)
Let: K = the value of a Knight.
K = 86 + 14.5 x P - .5 x P^2
Here's a table of values:
 P       K
 1      100
 2      113
 3      125
 4      136
 5      146
 6      155
 7      163
 8      170
 9      176
10      181
11      185
12      188
13      190
14      191
Basically, the Knights range in strength from 100 to 191, depending upon how many of their fellow pieces are still in play.
2. Castles: two pieces into opponent's Castle = 3,100 points (game win).
3. Elimination of all of opponent's pieces while retaining two or more friendly pieces = 3,000 points (game win).
4. Proximity to Opposing Castle: Each piece gets the following points for the rank it occupies:
rank occupied    points
 1 (own castle)    0
 2                 2
 3                 4
 4                 6
 5                 8
 6                10
 7                12
 8                14
 9                16
10                18
11                20
12                22
13                24
14                26
15                28
16 (opp's castle)  0
(16th rank = 0 points because moving ONE piece into opposing castle is a weak move unless you can move two pieces in.)
5. Each square controlled by each piece = 1 point.  (e.g., five pieces controlling 8 squares each  = 40 points.)  "Controlled By" means each square able to be moved to by a legal move, whether by Plain Move or Canter or canter portion of a Knight's Charge, AND each square housing an enemy piece that could be jumped over, whether by Jump or jumping portion of a Knight's Charge.
6. Add to each position a factor of 400 points x total value of your pieces / total value of your opponent's pieces.  So, for example, if you had 2 Knights and 3 Men, and your opponent had 2 Knights and 2 Men, you would add: 400 x (2 x 175 + 3 x 100) / (2 x 166.67 + 2 x 100) = 487.5 points but if you exchanged 1 Man for 1 Man you would have 2 Knights and 2 Men and your opponent would have 2 Knights and 1 Man, and you would add: 400 x (2 x 166.67 +2 x 100) / (2 x 158.33 + 100) = 512 points so, you would gain 24.5 points for exchanging a Man for a Man.
The concept is that a position where I am ahead 4 Men to 3 Men is better than a position where I am ahead 5 Men to 4 Men, but worse than a position where I am ahead 3 Men to 2 Men. Conversely, a position where I am behind 3 Men to 4 Men is worse than a position where I am behind 4 Men to 5 Men, but better than a position where I am behind 2 Men to 3 Men.  What I'm trying to say is: when behind, don't trade; when ahead, trade.
7. Proximity to center of board: Each piece gets the following points for the file it occupies:
    a file:      0 points
    b file:      1 points
    c file:      2 points
    d file:      3 points
    e file:      4 points
    f & g files: 5 points
    h file:      4 points
    i file:      3 points
    j file:      2 points
    k file:      1 point
    l file:      0 points
8. Proximity of Pieces to Knights: 5 points for each Piece (Man or Knight) adjacent (Vertically, Horizontally, or Diagonally) to a friendly Knight.
9. Proximity of Men to Men: 2 points for each Man adjacent (Vertically, Horizontally, or Diagonally) to a friendly Man.
10. Moving into a position where your piece is next to an exposed enemy piece but not exposed, itself, to the enemy piece (in other words, moving into a position where you're going to have to jump on the next move: -15 points.  (This means a position where you can't be taken because you have another piece directly behind you but he can be taken because he doesn't.)  Basically, if you move to where he doesn't have to jump you, but you're going to have to jump him next move, you're dead because he can position his other pieces dangerously and you're still going to have to jump next move.
11. Removal of piece from own castle: 6,000 points (mandatory).
12. Making a capture by means of a Jump or a Knight's Charge when an enemy piece is exposed to capture by means of a jump: 4,500 points (mandatory, except if #11 is possible).
 
Notice: Microsoft has no responsibility for the content featured in this group. Click here for more info.
  Try MSN Internet Software for FREE!
    MSN Home  |  My MSN  |  Hotmail  |  Shopping  |  Money  |  People & Chat  |  Search
Feedback  |  Help  
  ©2005 Microsoft Corporation. All rights reserved.  Terms of Use  Advertise  TRUSTe Approved Privacy Statement  GetNetWise