Commit Graph

  • a96cba0ec8 Slightly better condition in update_hidden_checks() Marco Costalba 2009-02-28 09:42:52 +01:00
  • f9f30412e7 Compute pinned and friends incrementally Marco Costalba 2009-02-28 09:18:29 +01:00
  • 55f9afee2a Fix a subtle bug due to the StateInfo pointer became stale Marco Costalba 2009-02-23 18:46:33 +01:00
  • 962216440c Teach SEE about pinned pieces Marco Costalba 2009-02-23 15:19:51 +01:00
  • 243fa483d7 Small Position::clear() cleanup Marco Costalba 2009-02-23 12:48:57 +01:00
  • da7a62852a Do not copy the whole old state in do_move() Marco Costalba 2009-02-23 12:06:06 +01:00
  • 0bf45823da Update pinned bitboards and friends in do_move() Marco Costalba 2009-02-23 11:37:31 +01:00
  • 4324276419 Fix some asserts unhidden by a debug compile Marco Costalba 2009-02-23 00:21:11 +01:00
  • 43bc5479c2 Avoid resetting pinners[c] Marco Costalba 2009-02-22 21:06:52 +01:00
  • 8f59de48f5 Introduce StateInfo instead of UndoInfo Marco Costalba 2009-02-22 20:16:21 +01:00
  • 2f6c5f00e6 Wrap state variables in a named struct Marco Costalba 2009-02-22 18:31:24 +01:00
  • 2f21ec39ad Convert also undo_null_move() to avoid passing UndoInfo object Marco Costalba 2009-02-22 18:03:23 +01:00
  • 9b257ba29d Passing UndoInfo is not needed anymore when undoing the move Marco Costalba 2009-02-22 17:49:52 +01:00
  • 1b0fee9b17 Remove two useless calls to pinned_pieces() Marco Costalba 2009-02-21 19:59:29 +01:00
  • b7cb6180cf Position: Unify and templetize mg_pst() and eg_pst() Marco Costalba 2009-02-20 12:21:52 +01:00
  • f30aa83f8a Unify compute_mg_value() and compute_eg_value() Marco Costalba 2009-02-20 12:05:07 +01:00
  • 1dc27f3232 Use a union to fast and simply backup info in do_move() Marco Costalba 2009-02-20 11:13:19 +01:00
  • 95cfc0e306 In Position backup and restore contiguous data Marco Costalba 2009-02-20 10:20:08 +01:00
  • 9e1d142fdd Finally remove any occurence of dcCandidates from search.cpp Marco Costalba 2009-02-19 17:35:23 +01:00
  • 683e6dc656 Do not pass discovery check candidates in Position::do_move() Marco Costalba 2009-02-19 17:29:36 +01:00
  • c6630abe0d Do not pass pinned argument in Position::move_is_check() Marco Costalba 2009-02-19 17:01:08 +01:00
  • 734941672e Do not pass pinned argument in Position::pl_move_is_legal() Marco Costalba 2009-02-19 16:48:57 +01:00
  • 0a0ea36e25 Cleanup pinned and friends in movegen.cpp Marco Costalba 2009-02-19 16:37:03 +01:00
  • 5f142ec209 Cache pinned and discovery check bitboards Marco Costalba 2009-02-19 16:28:35 +01:00
  • 7f4f18f959 Revert mobility of pinned pieces for now We will redo after rewriting the handling of pinned bitboard and its friends. Marco Costalba 2009-02-19 15:49:54 +01:00
  • c45818e9f8 Remove xxx_of_color() for real Marco Costalba 2009-02-17 17:26:15 +01:00
  • 7013efce4e Change piece_attacks_square() API Marco Costalba 2009-02-17 12:00:05 +01:00
  • 9f5b709db7 Mobility is zero for a pinned piece Marco Costalba 2009-02-17 11:29:14 +01:00
  • 2c955f25de Remove xxx_of_color() helpers Marco Costalba 2009-02-17 10:54:47 +01:00
  • f32992f88c Avoid a call to move_is_capture() in extension() Marco Costalba 2009-02-13 20:21:05 +01:00
  • e71d520758 Add scan for X-ray attacks in piece_attacks_square() Marco Costalba 2009-02-13 15:29:24 +01:00
  • 52ed0e9563 Fix a subtle bug in Position::move_is_capture() Marco Costalba 2009-02-13 14:17:39 +01:00
  • 30e8f0c9ad Do not manually build endgame functions hash keys Marco Costalba 2009-02-13 10:00:47 +01:00
  • 67375f4693 Use template for endgame scaling functions Marco Costalba 2009-02-12 14:59:46 +01:00
  • 039badfda8 Use templates for end game evaluation functions Marco Costalba 2009-02-12 13:20:22 +01:00
  • 088ecc242f Small code formatting in position.cpp Marco Costalba 2009-02-12 12:43:14 +01:00
  • a188a047ab Use update_checkers<>() also for PAWN Marco Costalba 2009-02-12 12:26:23 +01:00
  • 1d2247aea3 Introduce update_checkers() to simplify do_move() Marco Costalba 2009-02-12 12:12:46 +01:00
  • 8365f8ac1e Remove square_is_attacked() Marco Costalba 2009-02-12 09:53:37 +01:00
  • 68d36b6f59 Rename generate_piece_blocking_evasions() Marco Costalba 2009-02-12 09:28:18 +01:00
  • 33c608e140 Final touches to generate_evasions() Marco Costalba 2009-02-11 17:21:03 +01:00
  • ff60dafe8d Simplify legality check in generate_evasions() Marco Costalba 2009-02-11 11:59:27 +01:00
  • 214f9dcc27 generate_evasions() avoid an usless check for enpassant case Marco Costalba 2009-02-11 16:51:35 +01:00
  • 1dc1cecf01 Optimize generate_piece_blocking_evasions() Marco Costalba 2009-02-11 12:58:45 +01:00
  • 67535711e8 generate_evasions() avoid to calculate pinned pieces Marco Costalba 2009-02-11 12:13:58 +01:00
  • 56f607fe0f Drop a double semicolon Marco Costalba 2009-02-11 08:37:33 +01:00
  • 9d044cf4ee Last touches to movegen.cpp Marco Costalba 2009-02-10 17:53:19 +01:00
  • 769f2fdecb Remove special case of pawn checks generation Marco Costalba 2009-02-10 17:44:55 +01:00
  • 9bffe811c4 Remove special case of pawn move generatation Marco Costalba 2009-02-10 17:31:07 +01:00
  • 3e20c6c07d Simplify generate_evasions() Marco Costalba 2009-02-10 16:58:02 +01:00
  • 4f5f97107e Simplify generate_checks() Marco Costalba 2009-02-10 16:02:48 +01:00
  • 151d47dc85 Micro-optimize do_generate_pawn_checks() Marco Costalba 2009-02-10 12:28:47 +01:00
  • 33ddeec5e0 Templetize generate_piece_checks_king() Marco Costalba 2009-02-10 11:03:45 +01:00
  • 4573d618e4 Small optimization in generate_evasions() Marco Costalba 2009-02-07 13:11:52 +01:00
  • 1156eb865b Simplify newly introduced castling_is_check() Marco Costalba 2009-02-06 16:40:30 +01:00
  • 76381cbd69 Small code style tidy up Marco Costalba 2009-02-06 16:21:00 +01:00
  • fa322b3768 Fix casting warnings under Intel Compiler Marco Costalba 2009-02-07 12:31:53 +01:00
  • 2ea7449f2a Fix Makefile Marco Costalba 2009-02-07 12:25:37 +01:00
  • ee6e8851be Templetize generate_castle_moves() Marco Costalba 2009-02-05 16:08:00 +01:00
  • 03211296f1 Add generation of castling checks Marco Costalba 2009-02-05 15:06:41 +01:00
  • cc76951483 Remove square.cpp Marco Costalba 2009-02-04 17:51:23 +01:00
  • f0858cd229 Move constants from piece.cpp to piece.h Marco Costalba 2009-02-04 17:42:28 +01:00
  • 225d89c51b PawnInfo::clear() retire memset() and fix Ubuntu compile Marco Costalba 2009-02-04 17:18:12 +01:00
  • 8bef9e59a0 Remove the useless color.cpp Marco Costalba 2009-02-04 17:12:21 +01:00
  • 82bf08e4f2 Final endgame.cpp space inflate Marco Costalba 2009-02-03 16:08:41 +01:00
  • c32904f0a0 Revert previous commit. Optimization is correct but slightly slower so it is a pessimization :-) Marco Costalba 2009-02-03 15:41:04 +01:00
  • 6cfb661ca5 Yet another count_1s() optimization Marco Costalba 2009-01-25 19:29:15 +01:00
  • be43219136 Rever count_1s() optimizations Marco Costalba 2009-01-25 18:00:57 +01:00
  • d5b77ad45e MovePicker, remove a variable Marco Costalba 2009-01-25 13:52:35 +01:00
  • c6d62b7da5 MovePicker::find_best_index() never returns -1 Marco Costalba 2009-01-25 13:36:59 +01:00
  • 3e6e57231e Rewrite count_1s() to be similar to 64bit counterpart Marco Costalba 2009-01-11 17:15:18 +01:00
  • 14c1fd4d27 Micro optimize count_1s_max_15() for 32 bit system Marco Costalba 2009-01-11 17:05:29 +01:00
  • 4b53bb02f6 Fix a very old bug in queen mobility Marco Costalba 2009-01-10 16:11:33 +01:00
  • ec2927286a Start to space inflate endgame.cpp Marco Costalba 2009-01-08 15:46:57 +01:00
  • bdbbc4e06b Rewrite evaluate_common() as a template Marco Costalba 2009-01-07 15:37:28 +01:00
  • 539051b1e0 Big trailing whitespace cleanup part 2 Marco Costalba 2009-01-07 14:28:04 +01:00
  • c97104e854 Big trailing whitespace cleanup part 1 Marco Costalba 2009-01-07 14:26:58 +01:00
  • 5cacefe7c6 Another micro-optmization in valuate_passed_pawns() Marco Costalba 2009-01-07 14:17:50 +01:00
  • 9b87d151bc Fix a small bug in rook pawn evaluation Marco Costalba 2009-01-06 16:10:22 +01:00
  • cbfbf25d1b evaluate_passed_pawns() micro-optmization Marco Costalba 2009-01-06 16:06:08 +01:00
  • 90585a8a36 Final space inflate of evaluatio.cpp Marco Costalba 2009-01-06 15:59:08 +01:00
  • e236a0c652 Space inflate evaluate_passed_pawns() Marco Costalba 2009-01-06 15:49:33 +01:00
  • d0804341c5 Piece mobility: filter out squares protected by pawns Marco Costalba 2009-01-05 15:14:16 +01:00
  • dc4e2d8184 Take in account odd depths in razoring formula Marco Costalba 2009-01-05 12:41:27 +01:00
  • e828753a3a Fix dbg_mean_of() to enable statistics when called Marco Costalba 2008-12-30 12:54:21 +01:00
  • 33bb8305a9 Restore development versioning and LSN filtering Marco Costalba 2008-12-30 12:42:23 +01:00
  • cc3c1dc25a Stockfish 1.2 optimistic sf_1.2_optimistic Marco Costalba 2008-12-29 12:24:34 +01:00
  • 11763d2b7f Stockfish 1.2 sf_1.2 Marco Costalba 2008-12-29 12:06:21 +01:00
  • d99a95df29 Micro optimization in extension() Marco Costalba 2008-12-29 11:57:07 +01:00
  • 0da1d6a846 Remove a gcc warning on an unused variable Marco Costalba 2008-12-29 11:36:11 +01:00
  • 5d94305af3 Properly handle odd depths in razor formula Marco Costalba 2008-12-28 19:38:44 +01:00
  • e4fd9a2df7 Safer razoring formula Marco Costalba 2008-12-28 12:55:33 +01:00
  • aedc6c6f1f Don't silently accept an option name mismatch Marco Costalba 2008-12-28 12:37:13 +01:00
  • dae4e7df07 Tweak again futility margings Marco Costalba 2008-12-25 20:08:45 +01:00
  • 96a32eec69 Expose new futility margin interface to UCI Marco Costalba 2008-12-25 19:41:24 +01:00
  • e46d3670fd Tweak futility margins Marco Costalba 2008-12-25 12:05:45 +01:00
  • 8cd5cb930d Try razoring only for depth > OnePly Marco Costalba 2008-12-24 11:27:07 +01:00
  • 2feb9d5100 Futility pruning till ply 6 included Marco Costalba 2008-12-24 09:34:09 +01:00
  • d11426c777 Fix a comment Marco Costalba 2008-12-22 10:18:36 +01:00
  • e96f56adfa Merge futility pruning from Glaurung 2.2 Marco Costalba 2008-12-23 12:01:48 +01:00