组合数学取子游戏nim

时间:2016-04-20 08:19:37
【文件属性】:
文件名称:组合数学取子游戏nim
文件大小:19KB
文件格式:DOC
更新时间:2016-04-20 08:19:37
Nim 组合数学 Nim is a 2-player game featuring several piles of stones. Players alternate turns, and on his/her turn, a player’s move consists of removing one or more stones from any single pile. Play ends when all the stones have been removed, at which point the last player to have moved is declared the winner. Given a position in Nim, your task is to determine how many winning moves there are in that position. 组合数学取子游戏代码实现。

网友评论

  • 这个代码真的有点少,有点简单,不过是能用