• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/Chess-310.6/sjeng/

Lines Matching defs:score

373   /* return a score for the current middlegame position: */
376 int32_t score = 0;
397 checkECache(&score, &in_cache);
401 if (white_to_move == 1) return score;
402 return -score;
467 score += 100;
468 score += white_pawn[i] >> wdev_dscale;
469 score += p_tropism[i][bking_loc];
473 score -= 100;
474 score -= black_pawn[i] >> bdev_dscale;
475 score -= p_tropism[i][wking_loc];
479 score += 250;
480 score += white_rook[i] >> wdev_dscale;
481 score += r_tropism[i][bking_loc];
485 score -= 250;
486 score -= black_rook[i] >> bdev_dscale;
487 score -= r_tropism[i][wking_loc];
491 score += 230;
492 score += bishop[i] >> wdev_dscale;
493 score += b_tropism[i][bking_loc];
497 score -= 230;
498 score -= bishop[i] >> bdev_dscale;
499 score -= b_tropism[i][wking_loc];
503 score += 210;
504 score += white_knight[i] >> wdev_dscale;
505 score += n_tropism[i][bking_loc];
509 score -= 210;
510 score -= black_knight[i] >> bdev_dscale;
511 score -= n_tropism[i][wking_loc];
515 score += 450;
516 score += white_queen[i] >> wdev_dscale;
517 score += q_tropism[i][bking_loc];
521 score -= 450;
522 score -= black_queen[i] >> bdev_dscale;
523 score -= q_tropism[i][wking_loc];
532 score += white_king[wking_loc] >> bdev_dscale;
533 score -= black_king[bking_loc] >> wdev_dscale;
540 score -= 30;
544 score += 30;
549 score -= 15;
551 score -= 15;
553 score += 15;
555 score += 15;
565 if (board[wking_loc+11] != wpawn) score -= 24;
566 if (board[wking_loc+12] != wpawn) score -= 35;
567 if (board[wking_loc+13] != wpawn) score -= 24;
572 if (board[bking_loc-25] == bpawn) score += 11;
573 if (board[bking_loc-24] == bpawn) score += 15;
574 if (board[bking_loc-23] == bpawn) score += 11;
580 if (board[bking_loc-13] != bpawn) score += 24;
581 if (board[bking_loc-12] != bpawn) score += 35;
582 if (board[bking_loc-11] != bpawn) score += 24;
587 if (board[bking_loc-25] == bpawn) score -= 11;
588 if (board[bking_loc-24] == bpawn) score -= 15;
589 if (board[bking_loc-23] == bpawn) score -= 11;
595 score += 30;
596 if (moved[D2]) score += 25;
597 if (moved[G1]) score += 20;
598 if (moved[B1]) score += 15;
599 if (moved[C1]) score += 10;
603 score -= 30;
604 if (moved[D7]) score -= 25;
605 if (moved[G8]) score -= 20;
606 if (moved[B8]) score -= 15;
607 if (moved[C8]) score -= 10;
614 score -= 30;
616 score += 30;
626 score -= 35;
628 score -= 150 >> bdev_dscale;
632 score += 35;
634 score += 150 >> wdev_dscale;
644 if (board[F2] == wpawn) score += 10;
645 if (board[E3] == wpawn) score += 20;
646 else if (board[E3] == bpawn) score -= 15;
650 if (board[F7] == bpawn) score -= 10;
651 if (board[E6] == bpawn) score -= 20;
652 else if (board[E6] == wpawn) score += 15;
658 score += 50 >> wdev_dscale;
660 score -= 50 >> bdev_dscale;
667 score -= 20;
668 if (Fis_attacked(G2,0)) score -= 40;
669 if (board[G1] == wrook) score += 10;
670 if (board[F1] == wbishop) score += 10;
674 score += 20;
675 if (Fis_attacked(G7,1)) score += 40;
676 if (board[G8] == brook) score -= 10;
677 if (board[F8] == bbishop)score -= 10;
685 score -= 20;
688 score -= 40;
690 score -= 80;
695 score += 20;
698 score += 40;
700 score += 80;
742 score += safety;
745 score += (white_hand_eval + black_hand_eval);
747 storeECache(score);
751 return score;
754 return -score;