An evolutionary approach for computing the winning strategy for Nim-like games is proposed in this paper. The winning strategy is computed by using the Multi Expression Programming (MEP) technique - a fast and efficient variant of the Genetic Programming (GP). Each play strategy is represented by a mathematical expression that contains mathematical operators (such as +, -, *, mod, div, and , or, xor, not) and operands (encoding the current game state). Several numerical experiments for computing the winning strategy for the Nim game are performed. The computational effort needed for evolving a winning strategy is reported. The results show that the proposed evolutionary approach is very suitable for computing the winning strategy for Nim-like games.
翻译:本文提出了计算Nim类游戏获胜策略的渐进式方法。 获胜策略是使用多表达式程序(MEP)技术( MEP) 来计算, 这是基因程序( GP) 快速有效的变体。 每个游戏策略都由数学表达式来代表, 该表达式包含数学操作员( 如 +, - - *, mod, div, and, or, xor, not) 和歌剧( 或, xor, not) ( 编译当前游戏状态) 。 为计算Nim 游戏的获胜策略, 进行了数项实验。 报告了制定中选策略所需的计算工作。 结果表明, 拟议的进化方法非常适合计算类似 Nim 游戏的获胜策略 。