Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在象棋中可能出现双方走子之后同一局面重复出现的情况,这种情况是如何解决的? #3

Open
fan003322 opened this issue Sep 7, 2021 · 1 comment

Comments

@fan003322
Copy link

这种情况下搜索树可能无法达到终点,是如何解决的,谢谢

@fan003322 fan003322 changed the title 想咨询一下,在象棋中可能出现双方走子之后同一局面重复出现的情况,这种情况是如何解决的? 在象棋中可能出现双方走子之后同一局面重复出现的情况,这种情况是如何解决的? Sep 7, 2021
@bupticybee
Copy link
Owner

bupticybee commented Sep 7, 2021

https://github.com/bupticybee/icyChessZero/blob/master/cchess_zero/mcts_async.py#L156

def should_cutoff(self):

我的处理方法不是标准方法,我是直接在MCTS搜索中对同局3现做cut-off操作,保证ai不会3现同一个局面

@bupticybee bupticybee reopened this Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants