首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 卵石游戏的实现

卵石游戏的实现

  • 资源大小:250.02 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 游戏 实现

资 源 简 介

About Basic implementation of an AI that can play the pebble game for MSOE classes CS4881 and CS3851 final projects. The Pebble Game The origional game was named "GATTA TIPNE KHEL" (meaning pebble picking game). In this pebble picking game a pile of some pebbles is kept in the ground. One of the two players picks one, two or three pebbles up at a time in their turn, leaving the pile for the other player to pick for their turn. In this alternate picking process, the player who picks the last pebble(s) will be the loser. The main logic of the game is to leave the pile of pebbles with 13, 9, 5 or 1 pebble(s) for the opponent to pick. In the program the starting number of pebbles are set to 17, 21, 25, 29 … etc. so that computer could win always if it does not make a mistake. But in the real play computer seems to be gradually learning by correcting mistakes of the previously played games. At last it finds all its mistakes and corrects t

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP