搜索资源列表
MaxMinAlgo
- 使用人工智能极大值极小值算法实现的井字棋游戏,有完整的工程及源码注释,可直接运行,并附带了程序运行的示例截图。-Maximum use of artificial intelligence algorithms to achieve the minimum chess game Tic Tac Toe, a complete engineering and source notes, can be directly run, and run the sample with a screensho
npg-nash-equilibrium
- n 人非合作博弈 纳什均衡 基于文章"An Optimization Formulation to Compute Nash Equilibrium in finite Games"的源码-The function npg solves an n-person finite non-co-operative game to compute one sample Nash Equilibrium. It uses an optimization formulation
8数码
- 需要说明的是:本文示例图中的目标状态在计算上是最快捷的,首先取数很方便,一般地查看目标在第i个位置上的值,则需要访问数组goal[i],而这里goal[i]==i,故而无需访问数组;第二,要想知道数码n的目标位置,则需要找到goal[i]==n,然后row=i/3,col=i%3. 但是这里的话,row=n/3,col=n%3. 当我们用8位无符号整型来表示各个数码值(0~8)时,n/3和n%3操作是非常快的,比访问数组还快。 程序还提供一种玩游戏模式,即用户自己通过W,S,A,D四个键分