-
1、对输入的要求
玩家手中可以有2-5张牌(玩家自己输入多少张牌)。牌点为2-10的每张牌都分别计为相应的点数。花牌(J,K,Q)都算10点。目标是尽可能...
1、对输入的要求
玩家手中可以有2-5张牌(玩家自己输入多少张牌)。牌点为2-10的每张牌都分别计为相应的点数。花牌(J,K,Q)都算10点。目标是尽可能接近21点,但不要超过21点。所以,任何超过21点的点数都表示这一手牌已经“爆”了。A既可以计为1点,也可以计为11点,要选择对玩家来说最有利的一个点数。例如,1张A和1张10可计为11点或21点,但由于21点更好,所以这一手牌要算成21点。1张A和2张8可计为17点或者27点,由于27点已经“爆”了,所以这一手牌要算成17点。
程序首先询问玩家手上有几张牌,玩家输入2,3,4或者5。然后询问玩家每张牌的点数。点数可为2-10,J,K,Q和A。2-9的值分别作为字符‘2’-‘9’来输入。10,J, Q, K和A等值分别作为字符‘t’,‘j’,‘q’,‘k’和‘a’来输入(当然,玩家不需要输入单引号);
2、对输出的要求:
可以让玩家更清楚的知道他下一步应该怎么做
3、程序所能达到的功能
能够计算出所有牌的点数 之和,而且能够帮你处理好那张牌对 你的牌点之和更有利。-Blackjack
- 2023-06-19 09:10:03下载
- 积分:1
-
使用Borland C++ Builder 6.0开发的网络五子棋游戏,有一个寓教于乐的东东~...
使用Borland C++ Builder 6.0开发的网络五子棋游戏,有一个寓教于乐的东东~-The use of Borland C++ Builder 6.0 to develop a network Gobang game, there is a recreation of the NEE ~
- 2022-05-12 23:30:57下载
- 积分:1
-
computer games production of artificial intelligence, and the chess game newcome...
电脑游戏中的人工智能制作,棋弈游戏,另外有详细的文档加以说明,虽然有文档,但限制20字,还得凑凑,-computer games production of artificial intelligence, and the chess game newcomers, and a detailed document to be, although there are documents, but the 20-character limit, they have got to take care of, huh
- 2022-02-24 20:23:34下载
- 积分:1
-
一个五子棋的小游戏,用VC编写的,挺好玩的
一个五子棋的小游戏,用VC编写的,挺好玩的-Gobang a small game, prepared by VC, good fun
- 2022-11-22 00:35:03下载
- 积分:1
-
鑫众棋牌很不错,可架设个人、网络、域内网都可。
此为真钱游戏客户端、服务端、内设教程。...
鑫众棋牌很不错,可架设个人、网络、域内网都可。
此为真钱游戏客户端、服务端、内设教程。-Very good, can be set up personal, network, network domain can be. This is a real money game client, server, inside the tutorial.
- 2023-04-16 06:25:06下载
- 积分:1
-
24点牌算法,该算法可以对输入进行分析,提示错误。同时该算法在总结过去算法基础上避免了重复结果和不合理结果,具有一定参考价值。...
24点牌算法,该算法可以对输入进行分析,提示错误。同时该算法在总结过去算法基础上避免了重复结果和不合理结果,具有一定参考价值。-24 points licensing algorithm, which can be input to the analysis, suggesting error. While the algorithm in the past algorithm on the basis of the results to avoid duplication and unreasonable results, which have a certain value.
- 2022-03-19 09:29:14下载
- 积分:1
-
C++网络象棋源代码
C++网络象棋源代码-network Chess C source code
- 2022-02-24 13:28:42下载
- 积分:1
-
网络五子棋源代码
网络五子棋源代码-network source code 331
- 2022-01-23 11:15:37下载
- 积分:1
-
TC3.0编译,运行在98(如直接调用中断鼠标)C:…
TC3.0下编译,98下运行(因为直接调用中断中的鼠标) 放在c:windowsdesktopwzq下 也就是把程序烤到98桌面上去 运行wzq.exe的时候必须有egavga.bgi 和 hzk16在同一目录-TC3.0 compiler, running under 98 (as a direct call interrupted the mouse) on c : windows desktop wzq is under the procedures bake up to 98 desktop operating wzq.exe must have the time and hzk16 egavga.bgi in the same directory
- 2022-04-15 17:34:46下载
- 积分:1
-
跳棋游戏
跳棋游戏- The Chinese checkers play
- 2022-04-27 09:41:11下载
- 积分:1