-
This is the DOS operating procedures of playing cards ..... involving graphics a...
这个是在DOS下运行的扑克牌程序..... 其中涉及到图形学编程方面主要应用 使用TC编译器进行编译-This is the DOS operating procedures of playing cards ..... involving graphics application programming aspects of the use of TC compiler for compiling
- 2023-04-26 20:50:03下载
- 积分:1
-
TC2.0 五子棋算法
TC2.0 五子棋算法-Gobang TC2.0 algorithm
- 2022-07-05 10:47:54下载
- 积分:1
-
用C++开发的中国麻将游戏(单机版),可以做为学习的范例。
――――――――――――――――――――――――――――――
游戏的基本运行
―――――...
用C++开发的中国麻将游戏(单机版),可以做为学习的范例。
――――――――――――――――――――――――――――――
游戏的基本运行
――――――――――――――――――――――――――-――――
运行前会先洒色子,根据色子与庄家给各玩家初始化手中的牌
1.初始化(根据庄家和色子数给每个人发12张牌)
2.牌墙发牌给庄家(m_nActive活动状态给庄家)
3.根据活动状态玩家是否是出牌状态(m_nState==1):如果是电脑,让其思考最差的一张牌并出牌,如果是人就让其自行选择(相应时间内没出牌就自动出刚抓的新牌(m_nNewPai))
4.根据玩家出的牌判断各玩家的优先级,优先级最大的玩家操作并把活动状态给他,(如果是人就等待其是否操作,时间内没响应就自动弃权)
5.如果有玩家操作了就返回第3步,如果没有玩家操作就进行第6步
6.如果没有玩家对刚出的牌操作就牌墙发牌给下一玩家,再返回第3步。
7.如果有人胡牌就统计分数,如果牌墙剩余的牌不到10张就流局,分数不变,游戏也结束。-C development of the Chinese game mahjong (single version), the study could serve as an example.------------------------------ The basic operation of the game------------------------------- first before running onto Boson. According Boson dealer to the player"s hands initialize a license. Initialization (according to several bankers and Boson issued to each person 12 Licensing) 2. Wall licensing licensing Makers (m_nActive activities to the state Makers) 3. According to state player of activities whether the card is the
- 2022-11-30 07:30:04下载
- 积分:1
-
/*这是本人学过C语言近两年之后写过的第一个象点样子的程序,也是从学过C之后一直想写的诸多程序之一,虽然不大,但毕竟是年轻手生,也倾注了我相当的心血。该程序用时...
/*这是本人学过C语言近两年之后写过的第一个象点样子的程序,也是从学过C之后一直想写的诸多程序之一,虽然不大,但毕竟是年轻手生,也倾注了我相当的心血。该程序用时两周,历经四次大的修改,数十次细节上的改动,最后形成现在的样子。还请各路大虾多多指教。其实程序还很简单,还有很多可以改进的地方,至少还可以引入C的图形机制,至少还可以用C++,VC++改写等。该程序在TC2.0下调试通过。经刘公烈老师一语点拨减少15处警告错误,但仍有一处尚未改正。*/-/* this is my learned C language written nearly two years after the first point as an example of the procedures, as well as from academic C after always wanted to write one of the many procedures, although little, but after all, young Adam, I have devoted considerable effort. The procedure used when two weeks after four major changes, dozens of details on the changes, resulting eventually in what it is today. Also requested will provide tremendous exhibitions. In fact, very simple procedure, there is a lot of room for improvement, at least C can also introduce the graphic mechanism, at least can also use C, VC rewritten so. The procedures under WITH TC 2.0 debugging through. Sent by the strong language teachers a 15 Tips to reduce erroneous warning, but there is sti
- 2022-03-07 13:51:52下载
- 积分:1
-
纯C编写的很强的Othello(黑白棋)游戏 只可惜是文本界面的。...
纯C编写的很强的Othello(黑白棋)游戏 只可惜是文本界面的。-prepared in pure C strong Othello (reversi) Unfortunately, the game is a text-only interface.
- 2022-01-31 04:14:44下载
- 积分:1
-
一个简单的五子棋源程序,VC环境下用C语言编写,方便初学者…
一个简单的五子棋源程序,在vc环境下用c语言编写的,方便初学者学习。-a simple renju source, vc environment using the c language, convenient beginners to learn.
- 2022-08-15 04:22:19下载
- 积分:1
-
JAVA编写的游戏
JAVA编写的游戏--奥赛罗,也就是黑白棋-JAVA preparation of the game-- Othello, which is reversi
- 2022-07-24 15:40:31下载
- 积分:1
-
五子棋源程序法的程序
五子棋源程序法的程序-renju source Act procedures
- 2022-07-20 00:12:55下载
- 积分:1
-
一个五子棋游戏的的源代码,支持单机和网络联机
一个五子棋游戏的的源代码,支持单机和网络联机-a 331 game"s source code, and network support single online
- 2022-01-26 06:35:53下载
- 积分:1
-
一个完美的色彩(便携式和# 39;游戏)
一个彩色的十全十美(文曲星里的游戏)-a perfect color (Portable"s game)
- 2022-05-31 07:45:47下载
- 积分:1