-
err
(1)由于c的随机性函数不好,所以每次游戏开始根据bios时间设置种子。
(2)得分越高,方块下降速度越快(每200分为单位)。
(3)每下落一个方块加1分,每消除一行加10分,两行加30分,三行加70分,四行加150分。初试分数为100分。
游戏控制:
up-旋转;空格-下落到底; 左右下方向键-控制方向。P-开始或暂停游戏。 ESC-退出。
特点:
(1)由于tc不支持中文,所以基本都是英文注释。
(2)函数命名尽可能规范的表达其内部处理目的和过程。
(3)代码加上注释仅有577行。(我下载过的两个俄罗斯方块代码一个在1087行,一个在993行,我的比它们代码少)。
(4)除了消除空格时算法比较复杂,其他算法都比较简单易读。
(5)绘图效率和局部代码效率扔有待提高。
(6)FrameTime参数可能依据不同硬件环境进行具体设置,InitGame需要正确的TC路径。-err
- 2022-03-21 17:39:50下载
- 积分:1
-
这个是用来制作C环境的五子棋源代码,很全面谢谢使用
这个是用来制作C环境的五子棋源代码,很全面谢谢使用-This is used to make the environment Gobang C source code, thank you very comprehensive use of
- 2023-02-19 22:00:04下载
- 积分:1
-
这是一个五子棋的游戏,比较完美,支持不同的音乐,和网上游戏,可以单人玩也可以多人。...
这是一个五子棋的游戏,比较完美,支持不同的音乐,和网上游戏,可以单人玩也可以多人。-This is a backgammon game, more perfect, the support of different music, and online gaming can be a single person can play more.
- 2022-03-16 18:23:20下载
- 积分:1
-
Reversi game is the thematic reports, which detailed the Gobang the entire produ...
黑白棋游戏的专题报告,里面详细介绍了五子棋的整个制作过程及如何使用-Reversi game is the thematic reports, which detailed the Gobang the entire production process and how to use
- 2022-05-09 11:00:48下载
- 积分:1
-
华容道C语言源码,是学习C语言的好的例子。
华容道C语言源码,是学习C语言的好的例子。-Huarong C language source code, is to learn C language good example.
- 2022-06-03 16:12:56下载
- 积分:1
-
一个中国象棋程序
一个中国象棋的程序-a Chinese chess procedures
- 2022-02-20 16:22:07下载
- 积分:1
-
黑白棋源代码
黑白棋的源代码-reversi source code
- 2022-03-22 18:35:51下载
- 积分:1
-
用SDL写的中国象棋程序,人工智能算法来源于陈成涛先生的mantisChess。 昨天中午在cosoft上偶然发现了陈成涛先生的中国象棋程序,Down下来以后发...
用SDL写的中国象棋程序,人工智能算法来源于陈成涛先生的mantisChess。 昨天中午在cosoft上偶然发现了陈成涛先生的中国象棋程序,Down下来以后发现只有Windows版,打开源代码,发现是用Win32 SDK写的(呵呵,以前学这东西可花了我不少时间,现在终于派上用场了),于是我决定把它移植到Linux下来,花了一个下午和一个早上终于搞定了。 不过程序退出的时候会出现一个错误,现在还没找到问题所在,而且程序的界面也比较难看,大家先凑合着用吧!等我以后有时间了再改。昨天已经被我们项目组长批了一顿了,说我上班时间不务正业。-SDL used to write Chinese chess procedures, artificial intelligence algorithms from Mr. Chen Cheng-tao mantisChess. Cosoft noon yesterday on the accidental discovery of Mr. Chen Cheng-tao of Chinese chess procedures, Down down after only a Windows version, open source code and discovered that it is written with Win32 SDK (Oh, before this study things I can spend a lot of time, now is a chance to use), so I decided transplant Linux down and spent an afternoon and a morning finally to get. But procedures from the time that there would be a mistake, we have not found the problem, but the interface procedures are ugly, we first used to improvise! So I will have more time to change. Yesterday, we had been awarded the project h
- 2022-08-22 19:59:18下载
- 积分:1
-
五子棋源码
五子棋源码 -Gobang game source
- 2022-04-22 21:39:40下载
- 积分:1
-
网络五子棋工程源码,VC++开发,编译FiveChess.dsw文件,在Debug目录下会生成文件FiveChess.exe,直接双击该文件,即可运行“网络五子...
网络五子棋工程源码,VC++开发,编译FiveChess.dsw文件,在Debug目录下会生成文件FiveChess.exe,直接双击该文件,即可运行“网络五子棋”程序,-Gobang engineering network source, VC++ Development, compiler FiveChess.dsw documents in Debug directory will generate a document FiveChess.exe, direct double-click the file, you can run the
- 2022-08-17 05:10:31下载
- 积分:1