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

您现在的位置是:虫虫源码 > 其他 > 一个简单的控制台游戏,在一排四的电脑上玩。

一个简单的控制台游戏,在一排四的电脑上玩。

  • 资源大小:22.29 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 控制台 游戏 简单 一个 电脑

资 源 简 介

This single C-source application contains a library and a very basic console representation of the four in a row (aka connect 4) game. The code shows how a computer opponent can be created using back-tracking. The level of look ahead can be adjusted, making it harder for you to win. Two techniques of implementing back tracking are recursion and by means of a stack. This code shows the stack implementation. One of the things that can be done using this code, is getting the library out and create a nice gui for it. Also for studying back tracking the code can be used. You can also have fun with this library by creating two computer opponents playing against each other (with rediculous look aheads, like 18 vs 20). I plays for hours :-) Cheers, Jeroen van der Waal

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.209693s