有没有一种方法可以评估象棋游戏中不同算法产生的两个动作? [英] Is there a way to evaluate two moves generated by deferent algorithms in a chess game?

查看:62
本文介绍了有没有一种方法可以评估象棋游戏中不同算法产生的两个动作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果一个国际象棋游戏使用两种不同的算法来生成移动,并且需要进行比较,那么哪种移动是最好的呢?

if a chess game were to use two different algorithms to generate moves and needed to be compared which move is the best what are the ways to do this?
Is there a algorithm to evaluate those moves?

推荐答案

Panchaz,
如果将alpha beta修剪用作算法,则应:
生成*所有*在特定位置可用的移动
然后,您通常通过以下方式命令移动:
良好的捕获动作(捕获具有更大或相等价值的作品的动作)
常规动作
错误捕获(捕获价值较小的片段的动作)

如果您在移动顺序排序中采用了更好的欧洲风情,则Alpha Beta将更好地削减"搜索.
Panchaz,
If you are using alpha beta pruning as an algorithm you should:
Generate *all* the moves available in a certain position
Then you order the moves generally by:
Good capture moves ( moves that capture a piece with greater or equal value )
Regular moves
Bad Captures ( moves that capture a piece with less value )

Alpha Beta will "cut" the search better if you apply some better euristic in the move ordering ehuristic.


这篇关于有没有一种方法可以评估象棋游戏中不同算法产生的两个动作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆