Commit Graph

549 Commits

Author SHA1 Message Date
CalciteM Team 28446d2254 context -> position 2019-09-15 18:18:55 +08:00
CalciteM Team 24b732ca08 positionContext -> position 2019-09-15 18:14:53 +08:00
CalciteM Team df23c9dc5f PositionContext -> Position 2019-09-15 18:13:57 +08:00
CalciteM Team 143dc12e15 position_ -> game_ (2) 2019-09-15 18:06:05 +08:00
CalciteM Team 596e672f2f position_ -> game_ (1) 2019-09-15 18:04:05 +08:00
CalciteM Team 3b5686414e setPosition -> setGame 2019-09-15 18:01:06 +08:00
CalciteM Team 3f286f2e48 positions->history 2019-09-15 17:59:46 +08:00
CalciteM Team ef6e917f99 Game &position -> Game &game 2019-09-15 17:54:17 +08:00
CalciteM Team 7b03758676 dummyPosition->dummyGame 2019-09-15 17:47:49 +08:00
CalciteM Team cd800ec73a Class Position->Game 2019-09-15 17:42:34 +08:00
CalciteM Team b330dd28ce depth: 降低白方第4步以及黑方最后3步一层搜索 2019-09-15 17:38:40 +08:00
CalciteM Team 4faf1c9c4c 修复提交 be8139f 引入的回放历史时棋子颜色显示错乱的问题 2019-09-15 10:58:18 +08:00
CalciteM Team 499468bd04 修复提交 2eb0872 引入的自动认输异常问题
并解决历史信息中点击历史不会正常显示局面的问题.
2019-09-15 09:20:42 +08:00
CalciteM Team 386b008362 修复 Player::toId() 的实现 2019-09-15 03:00:11 +08:00
CalciteM Team 19cfb40097 去除不必要的 memset 清零动作 2019-09-15 01:47:22 +08:00
CalciteM Team 7b77e8219f printBoard 改为只调用一次打印 2019-09-15 01:08:31 +08:00
CalciteM Team 874dac69f1 perf: 哈希表不加锁去掉线程安全机制
自对弈性能测试:
加锁:   2"93 = 213s
不加锁: 2"33 = 153s
提速 28%.
2019-09-14 23:51:52 +08:00
CalciteM Team 331e8b0d0b perf: 将 stack 的容器由双端队列 deque 改为 vector
因为不需要在前端插入元素.

自对弈性能测试:
deque: 3"54 = 234s, push_back 时间占比: 7.85%
vector: 2"93 = 213s push_back 时间占比: 7.49%
总体提速 9%.
2019-09-14 22:26:31 +08:00
CalciteM Team ded9f3e9de refactor: 去掉不必要的 zobrist 拷贝
转移 zobrist 到 base 中.
以及其他一些零碎重构.
2019-09-14 12:21:36 +08:00
Calcitem 6d4d9e9c4d refactor: EOL: DOS to Unix 2019-09-14 10:03:35 +08:00
CalciteM Team 2eb0872597 refactor: 将 _1 和 _2 形式改为数组形式 [1] 和 [2] 2019-09-14 03:06:48 +08:00
CalciteM Team 01c7c6b12f refactor: Player 相关部分修改为数组 2019-09-13 21:46:31 +08:00
CalciteM Team d81c8a781b refactor: 修复开 DEBUG_MODE 后的编译问题 2019-09-13 20:18:59 +08:00
CalciteM Team 8e70b82d4f refactor: position: 去掉 flag
去掉之后对性能几无影响.
2019-09-13 19:51:34 +08:00
CalciteM Team 37fa763508 refactor: Refactor position 2019-09-13 18:44:45 +08:00
CalciteM Team 95caceeb3e refactor: isStarLocation() 转移到 board 模块 2019-09-13 18:44:45 +08:00
Calcitem e1b5855f91 refactor: Player 后面编号之前加 _ 以便后续重构时搜索处理 2019-09-13 17:52:15 +08:00
CalciteM Team f3d95dcc34 refactor: 创建 misc.h 并将部分函数转移到其中 2019-09-13 16:56:03 +08:00
CalciteM Team ca63416b63 refactor: point 改为 location 并删除无用文件 2019-09-13 14:26:39 +08:00
CalciteM Team be8139f6c7 refactor: context.board.locations 改为 boardLocations 2019-09-13 14:12:48 +08:00
CalciteM Team 16d1889c70 refactor: board 继续改名 locations 2019-09-13 13:59:58 +08:00
CalciteM Team 091321a6e1 refactor: 增加重载类型运算符的宏
valut_t OK, 但是 direction_t 未奏效,待查.
2019-09-13 13:31:49 +08:00
CalciteM Team c665c64803 refactor: 为 value_t 重载运算符 2019-09-13 13:00:44 +08:00
CalciteM Team 940f119061 refactor: Add square_t for feature 2019-09-13 12:37:29 +08:00
CalciteM Team 95c5b99fd5 refactor: Rename to player_t 2019-09-13 12:21:01 +08:00
CalciteM Team b0fc22dda5 refactor: Rename to direction_t and line_t 2019-09-13 12:18:05 +08:00
CalciteM Team f75b316e67 refactor: Rename to enum piece_t 2019-09-13 11:59:09 +08:00
CalciteM Team 0c672eadd2 refactor: value_t 由 using 改为枚举 2019-09-13 02:30:23 +08:00
CalciteM Team f2bc38a177 refactor: stage 改名回 phase 2019-09-13 01:23:32 +08:00
CalciteM Team b9db47a752 refactor: move_t 由 using 改为 enum 2019-09-13 01:13:59 +08:00
CalciteM Team cd160ddd41 refactor: millgame 重命名为 position 相关文件名修改 2019-09-13 00:31:20 +08:00
CalciteM Team 073f4ffa01 refactor: 使用 position 表示"局面"的意思
相关文件名暂未修改.
2019-09-13 00:23:24 +08:00
Calcitem 4b4c754050 完成了必败时自动认输功能的开关选项 2019-09-12 00:39:58 +08:00
CalciteM 30b37bc4fa refactor: 将 positon 重命名为 location
因为术语中 position 是 "局面" 的意思, location 才是表示棋盘上的位置.
2019-09-10 03:28:27 +08:00
CalciteM d2c18f2fed refactor: 转移更多函数到 tt 模块 2019-09-09 01:22:38 +08:00
CalciteM 7236e32986 refactor: 置换表数据结构转移到 tt 模块 2019-09-09 00:56:46 +08:00
CalciteM 6360e1ff20 哈希必然记录并缩小 THREEFOLD_REPETITION 宏控制范围 2019-09-09 00:45:06 +08:00
CalciteM 3a043b469c refactor: 将部分哈希相关重命名为置换表相关名称 2019-09-09 00:29:50 +08:00
CalciteM 3d1022f292 refactor: 清理成三表和着法表等无用的逻辑 2019-09-08 23:58:26 +08:00
CalciteM fa531d5926 refactor: Rename chess to game 2019-09-08 23:40:22 +08:00