1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-17 07:59:36 +00:00

Commit graph

  • b82c3021fa Fix a smal bug in Position::from_fen Marco Costalba 2009-03-22 14:18:25 +01:00
  • 320630ca1a Merge new pawn storm evaluation Marco Costalba 2009-03-22 13:55:08 +01:00
  • ef8acdc73b Fix a small bug in king safety Marco Costalba 2009-03-22 13:11:24 +01:00
  • cc8e915ed5 Merge KBPP vs KB endgame from iPhone Glaurung Marco Costalba 2009-03-22 13:06:29 +01:00
  • 16abc165d8 Fix: In qsearch do not use TT value when in a PV node Marco Costalba 2009-03-21 14:51:31 +01:00
  • 74160ac602 Big headers cleanup Marco Costalba 2009-03-18 15:36:03 +01:00
  • feb5342b39 Safe guard some wild and ugly casts Marco Costalba 2009-03-16 13:59:41 +01:00
  • 6cddf9183c Partially revert pawns storm bug fix Marco Costalba 2009-03-16 08:02:33 +01:00
  • b870f5a091 Silence a good bunch of Intel warnings Marco Costalba 2009-03-15 18:07:28 +01:00
  • fcecc5212e Fix an overflow bug in pawns stormValue Marco Costalba 2009-03-15 18:06:40 +01:00
  • 8de91be61e Fix a silly warning on Intel compiler Marco Costalba 2009-03-15 17:02:09 +01:00
  • ca4e78db8d Revert NULL move beta corrections After testing result is bad -25 ELO Marco Costalba 2009-03-15 16:44:12 +01:00
  • bfcfaf7101 Retire Null Driven IID Marco Costalba 2009-03-13 15:39:22 +01:00
  • c8773c720a Merge Joona Kiiski NULL search beta correction Marco Costalba 2009-03-13 15:26:02 +01:00
  • 3ed603cd64 Merge Joona Kiiski evaluation tweaks Marco Costalba 2009-03-13 11:20:24 +01:00
  • f637ddc1e8 Micro optimize move_is_check() Marco Costalba 2009-03-07 20:38:05 +01:00
  • 964bd86272 Micro optimize pl_move_is_legal() Marco Costalba 2009-03-07 20:08:45 +01:00
  • 72b88e09e1 Micro optimize previous patch Marco Costalba 2009-03-06 20:39:43 +01:00
  • 3e663d8c50 Introduce evaluate_pieces<>() to remove redundancy Marco Costalba 2009-03-06 16:29:46 +01:00
  • 8c9c51c721 Fix compile error with inlines under gcc and Intel Marco Costalba 2009-03-04 23:11:23 +01:00
  • 7fe1632a49 Fix some comments in position.cpp Marco Costalba 2009-03-04 16:34:04 +01:00
  • 7c84b39a42 Avoid to call useless sliders attacks in update_checkers() Marco Costalba 2009-03-04 14:50:39 +01:00
  • 68e711aac6 Super fast hidden_checkers() Marco Costalba 2009-03-04 12:04:28 +01:00
  • 02cd96e4c2 Cleanup SearchStack initialization Marco Costalba 2009-03-03 11:17:43 +01:00
  • 772a37cd54 Micro optimize copy of new state in do_move() Marco Costalba 2009-03-02 17:32:30 +01:00
  • c02613860a Revert hidden checkers rework Marco Costalba 2009-03-02 16:20:00 +01:00
  • 9b6b9e67fe Use checker info to remove a bunch of hidden checks updates Marco Costalba 2009-02-28 16:49:50 +01:00
  • 6a8cfe79da Stricter condition to check for dc candidates Marco Costalba 2009-02-28 13:43:49 +01:00
  • 1f97b48a31 Split calculation of pinners from dc candidates Marco Costalba 2009-02-28 10:20:57 +01:00
  • 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