private int pieceValueAt( int position ) {
    switch ( pieceTypeAt( position ) ) {
      case PAWN:   return ( 100 );
      case KNIGHT: return ( 325 );
      case BISHOP: return ( 330 );
      case ROOK:   return ( 500 );
      case QUEEN:  return ( 900 );
      case KING:   return ( 20000 );
    }

    return ( 0 );
  }