Commit Graph

1329 Commits

Author SHA1 Message Date
Calcitem 00547b79e6 Add RULE_50 macro 2021-01-14 01:29:25 +08:00
Calcitem b61683f657 build: Fix build error when TEST_MODE is on and QT_GUI_LIB is off 2021-01-14 01:03:42 +08:00
Calcitem cf2db5c6b5 repetition: Revert detect 3-fold repetition during searching follow Stockfish
And change to tscp181c-like

Because:

Stockfish-like Vs tscp181c-like
played 9000

12 men without fly
11.45% : 86.55% : 1.99%
12.93% : 86.12% : 0.94%
= 48.79% : 49.74%

9 men with fly
26.16% : 37.62% : 36.21%
28.59% : 38.09% : 33.31%
= 32.13% : 33.11%
2021-01-14 00:42:54 +08:00
Calcitem effab83b44 rule50: Detect rule50 when searching 2021-01-13 01:26:37 +08:00
Calcitem 1ae4d49fa6 rule50: Count rule50 only when continuous MOVETYPE_MOVE
Note: UCI is not tested.
2021-01-13 01:13:32 +08:00
Calcitem 285cee07ef rule50: Judge rule50 and draw (WIP) 2021-01-12 01:07:29 +08:00
Calcitem e02c744a7b rule: Set 50 rule value to 99 2021-01-12 00:56:24 +08:00
Calcitem ee258ef012 repetition: Reduce THREEFOLD_REPETITION region and fix fen() 2021-01-12 00:55:40 +08:00
Calcitem 30db31fafa repetition: Detect 3-fold repetition during searching follow Stockfish
Played 10000
before
11.08% : 87.71% : 1.20%
after
11.92% : 87.36% : 0.70% (draw -0.5%)

Played 6800
before Vs after
11.84% : 86.08% : 2.06%
11.68% : 86.98% : 1.32%
2021-01-11 23:43:10 +08:00
Calcitem 10f7937301 qt: testmode: Disable animation 2021-01-10 22:00:12 +08:00
Calcitem 0734b1fa82 repetition: refactor: Add has_repeated() and has_game_cycle() 2021-01-10 21:08:01 +08:00
Calcitem 31da244933 repetition: Detect 3-fold repetition during searching
Ref: tscp181c

	if (ply && reps())
		return 0;

Test result:

Played: 8300
rep-detect Vs no-rep-detect
11.49% : 84.25% : 4.24%
11.27% : 86.13% : 2.59%

48.81% : 47.76% +1.05%
2021-01-10 20:29:30 +08:00
Calcitem 0dd4a5e7e2 Win32: Replace strncpy by strncpy_s 2021-01-10 20:28:41 +08:00
Calcitem fae335dc72 Add Programmer's Guide 2021-01-09 01:58:36 +08:00
Calcitem d9941024ff qt: change BOARD_SIZE from 600 to 550
Avoid see two piece outside the board.
2021-01-05 00:23:46 +08:00
Calcitem 54576b0617 qt: Change some comment 2021-01-05 00:22:52 +08:00
Calcitem ca495f1f49 qt: Change comments to English 2021-01-03 23:59:30 +08:00
Calcitem f5c4a5f7d9 Fix some VC Code analysis issues 2021-01-03 02:24:07 +08:00
Calcitem 25a71d0a7d Fix VS Code Analysis issues (except misc.c) 2021-01-02 16:40:35 +08:00
Calcitem 46e5d573e4 msvc: Move header file location 2021-01-02 15:53:07 +08:00
Calcitem 35f617d97e tt: search: Remove unused rotate/mirror code 2021-01-02 15:45:56 +08:00
Calcitem 863d091ac9 console: analyze: Change prompt to English (WIP) 2021-01-02 15:40:06 +08:00
Calcitem 04b6f10e1f Remove unsued TRAINING_MODE code 2021-01-02 14:07:11 +08:00
Calcitem 8269b1587a Remve PV/nonPV code 2021-01-02 13:18:48 +08:00
Calcitem 9ccc115bd8 position: REMOVE unused newSt and repetition code 2021-01-02 13:15:43 +08:00
Calcitem 2f3b549f56 position: fen: refactor 2021-01-02 13:06:47 +08:00
Calcitem 1784f39eab position: init: refactor 2021-01-02 13:03:34 +08:00
Calcitem 450643a043 flutter: Fix null ptr ref
Step:
AI vs AI
Back
Settings
Crash
2021-01-02 00:45:52 +08:00
Calcitem 0d35054f35 Fix TSC issues 2021-01-02 00:07:13 +08:00
Calcitem 0505423bde Remove unused millList because rule canRepeated is not supported 2021-01-01 23:04:35 +08:00
Calcitem 2d1ed84be4 refactor: Rename gameRecords to moveHistory 2021-01-01 20:53:59 +08:00
Calcitem 6022591e99 refactor: Rename moveHistory to posKeyHistory 2021-01-01 20:44:38 +08:00
Calcitem 3345cf0c74 Fix cppcheck reported issues
And a TSC issue.
2021-01-01 20:30:13 +08:00
Calcitem 69cd736a92 lang: Add mill-game-qt_zh_CN.ts (WIP) 2021-01-01 19:30:32 +08:00
Calcitem d5f304a384 qt: Change display language from Chinese to English 2021-01-01 02:53:56 +08:00
Calcitem 778d366edb refactor: Rename cmdlist to gameRecords 2021-01-01 00:00:23 +08:00
Calcitem 5d8c93fe41 position: Remove unused two count functions
int piece_on_board_count();
int piece_in_hand_count();
2020-12-31 22:19:57 +08:00
Calcitem 1de3e85883 refactor: Rename nPepetition to repetition 2020-12-31 22:00:32 +08:00
Calcitem e54ec69b1d position: Move create_mill_table() to Mills::mill_table_init() 2020-12-31 21:53:30 +08:00
Calcitem 21f5abb803 bb: millTableBB: Use SN() macron 2020-12-31 19:53:25 +08:00
Calcitem 9d3a6b9fa1 position: Remove unsued Position &Position::operator= (const Position &other) 2020-12-31 19:43:23 +08:00
Calcitem 9722790eb8 class Phase add comments 2020-12-31 19:39:42 +08:00
Calcitem 69f1dd8ee2 refactor: Replace forbidden to banned 2020-12-31 18:27:00 +08:00
Calcitem 8c976248cb position: Remove incomplete flip() 2020-12-31 17:42:49 +08:00
Calcitem fde9929a7f position: Remove incomplete pos_is_ok() 2020-12-31 17:40:10 +08:00
Calcitem a1d3c76c49 position: Remove incomplete functions about repeat
bool is_draw(int ply) const;
    bool has_game_cycle(int ply) const;
    bool has_repeated() const;
2020-12-31 17:37:48 +08:00
Calcitem e394bf8dd2 position: Remove void Position::undo_move(Move m) 2020-12-31 17:34:23 +08:00
Calcitem e709af4e14 position: Use empty(s)
And remove some TODO (Not solved).
2020-12-31 17:20:46 +08:00
Calcitem fe1d03287a position: Remove unused pseudo_legal() 2020-12-31 17:12:48 +08:00
Calcitem 97c1b969bc docs: Remove documents because filename is too long 2020-12-31 16:47:13 +08:00