flok99

Untitled

Aug 8th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1.         int evalPositions(final Board board, final PlayerColor color) {
  2.                 // http://chessprogramming.wikispaces.com/Simplified+evaluation+function
  3.                 final int [] pawn = {
  4.                          0,  0,  0,  0,  0,  0,  0,  0,
  5.                         50, 50, 50, 50, 50, 50, 50, 50,
  6.                         10, 10, 20, 30, 30, 20, 10, 10,
  7.                          5,  5, 10, 25, 25, 10,  5,  5,
  8.                          0,  0,  0, 20, 20,  0,  0,  0,
  9.                          5, -5,-10,  0,  0,-10, -5,  5,
  10.                          5, 10, 10,-20,-20, 10, 10,  5,
  11.                          0,  0,  0,  0,  0,  0,  0,  0 };
Advertisement
Add Comment
Please, Sign In to add comment